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,
)
: 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,