chore: Follow up last event

pull/1146/head
Krille 9 months ago
parent 147a741aef
commit b9b2d17990
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -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,

Loading…
Cancel
Save