fix: Rolled back changes from other PR

This commit is contained in:
Deven Joshi
2021-02-26 13:14:48 +05:30
parent 492727754c
commit feb0eb151e
@@ -103,11 +103,11 @@ class ImageActionsModal extends StatelessWidget {
color: StreamChatTheme.of(context).colorTheme.accentRed,
),
() {
var channel = StreamChannel.of(context).channel;
channel.updateMessage(
message..attachments.removeAt(currentIndex));
Navigator.pop(context);
Navigator.pop(context);
StreamChannel.of(context)
.channel
.deleteMessage(message);
},
color: StreamChatTheme.of(context).colorTheme.accentRed,
),