chore: Follow up last event

This commit is contained in:
Krille 2024-05-28 14:47:43 +02:00
parent 147a741aef
commit b9b2d17990
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -232,8 +232,9 @@ class ChatListItem extends StatelessWidget {
softWrap: false, softWrap: false,
) )
: FutureBuilder( : FutureBuilder(
key: ValueKey(lastEvent?.senderId),
future: needLastEventSender future: needLastEventSender
? room.lastEvent?.calcLocalizedBody( ? lastEvent.calcLocalizedBody(
MatrixLocals(L10n.of(context)!), MatrixLocals(L10n.of(context)!),
hideReply: true, hideReply: true,
hideEdit: true, hideEdit: true,
@ -244,8 +245,7 @@ class ChatListItem extends StatelessWidget {
room.lastEvent?.senderId, room.lastEvent?.senderId,
) )
: null, : null,
initialData: initialData: lastEvent?.calcLocalizedBodyFallback(
room.lastEvent?.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)!), MatrixLocals(L10n.of(context)!),
hideReply: true, hideReply: true,
hideEdit: true, hideEdit: true,