Skip to content

Commit

Permalink
bug fix for
Browse files Browse the repository at this point in the history
Clicking on Certain Areas of Audio Recording in Message List Displays "Invalid URL" Error
  • Loading branch information
VIPlearner committed Oct 20, 2024
1 parent 14e4857 commit d314b6e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ public open class AttachmentDestination(

if (url.isNullOrEmpty()) {
logger.e { "Wrong URL for attachment. Attachment: $attachment" }
Toast.makeText(
context,
context.getString(R.string.stream_ui_message_list_attachment_invalid_url),
Toast.LENGTH_SHORT,
).show()
if (attachment.type == AttachmentType.UNKNOWN) {
Toast.makeText(
context,
context.getString(R.string.stream_ui_message_list_attachment_invalid_url),
Toast.LENGTH_SHORT,
).show()
}
return
}

Expand Down

0 comments on commit d314b6e

Please sign in to comment.