Skip to content

Commit

Permalink
bug fix for (#5449)
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 authored Oct 22, 2024
1 parent 3803357 commit 47bed72
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 47bed72

Please sign in to comment.