From b9b2d1799090b44075dc85749bb7d55e9a236a57 Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 28 May 2024 14:47:43 +0200 Subject: [PATCH] chore: Follow up last event --- lib/pages/chat_list/chat_list_item.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 65cbde378..e9e9ce17e 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -232,8 +232,9 @@ class ChatListItem extends StatelessWidget { softWrap: false, ) : FutureBuilder( + key: ValueKey(lastEvent?.senderId), future: needLastEventSender - ? room.lastEvent?.calcLocalizedBody( + ? lastEvent.calcLocalizedBody( MatrixLocals(L10n.of(context)!), hideReply: true, hideEdit: true, @@ -244,8 +245,7 @@ class ChatListItem extends StatelessWidget { room.lastEvent?.senderId, ) : null, - initialData: - room.lastEvent?.calcLocalizedBodyFallback( + initialData: lastEvent?.calcLocalizedBodyFallback( MatrixLocals(L10n.of(context)!), hideReply: true, hideEdit: true,