chore: Follow up display stories bubble

This commit is contained in:
krille-chan 2023-08-17 19:48:57 +02:00
commit 5302383aeb
No known key found for this signature in database

View file

@ -132,11 +132,13 @@ class StoriesHeader extends StatelessWidget {
avatarUrl: avatarUrl, avatarUrl: avatarUrl,
userId: userId ?? 'Unknown', userId: userId ?? 'Unknown',
), ),
lastMessage: room.lastEvent?.calcLocalizedBodyFallback( lastMessage: room.hasPosts
MatrixLocals( ? room.lastEvent?.calcLocalizedBodyFallback(
L10n.of(context)!, MatrixLocals(
), L10n.of(context)!,
), ),
)
: null,
heroTag: 'stories_${room.id}', heroTag: 'stories_${room.id}',
hasPosts: room.hasPosts || room == ownStoryRoom, hasPosts: room.hasPosts || room == ownStoryRoom,
showEditFab: userId == client.userID, showEditFab: userId == client.userID,