mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
chore: Follow up last event
This commit is contained in:
parent
147a741aef
commit
b9b2d17990
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue