From 417fc17479a5069154ebfc4f19813c1bc0eb4bb2 Mon Sep 17 00:00:00 2001 From: sherlock Date: Thu, 14 Dec 2023 12:14:40 +0700 Subject: [PATCH] hot-fix: fix image not change when change reply image message --- lib/pages/chat/events/reply_content.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/chat/events/reply_content.dart b/lib/pages/chat/events/reply_content.dart index 7089964ac..3c45ee431 100644 --- a/lib/pages/chat/events/reply_content.dart +++ b/lib/pages/chat/events/reply_content.dart @@ -47,7 +47,6 @@ class ReplyContent extends StatelessWidget { maxLines: 1, room: displayEvent.room, emoteSize: ReplyContentStyle.fontSizeDisplayContent * 1.5, - event: timeline!.events.first, ); } else { replyBody = Text( @@ -89,6 +88,7 @@ class ReplyContent extends StatelessWidget { child: ClipRRect( borderRadius: ReplyContentStyle.previewedImageBorderRadius, child: MxcImage( + key: ValueKey(displayEvent.eventId), noResize: true, event: displayEvent, width: ReplyContentStyle.replyContentSize,