Skip to content

Commit

Permalink
fix(ui): use all message attachments in FullScreenMedia page
Browse files Browse the repository at this point in the history
  • Loading branch information
imtoori committed Dec 20, 2021
1 parent cb60567 commit 0aed43b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ class GiphyAttachment extends AttachmentWidget {
return StreamChannel(
channel: channel,
child: FullScreenMedia(
mediaAttachments: [attachment],
mediaAttachments: message.attachments,
startIndex: message.attachments.indexOf(attachment),
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ class ImageAttachment extends AttachmentWidget {
return StreamChannel(
channel: channel,
child: FullScreenMedia(
mediaAttachments: [attachment],
mediaAttachments: message.attachments,
startIndex:
message.attachments.indexOf(attachment),
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class VideoAttachment extends AttachmentWidget {
builder: (_) => StreamChannel(
channel: channel,
child: FullScreenMedia(
mediaAttachments: [attachment],
mediaAttachments: message.attachments,
startIndex:
message.attachments.indexOf(attachment),
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
Expand Down

0 comments on commit 0aed43b

Please sign in to comment.