From 5302383aeb48ba78c863f0cd7d43d58bc62d46c2 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Thu, 17 Aug 2023 19:48:57 +0200 Subject: [PATCH] chore: Follow up display stories bubble --- lib/pages/chat_list/stories_header.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pages/chat_list/stories_header.dart b/lib/pages/chat_list/stories_header.dart index 90eb59910..25e666b4a 100644 --- a/lib/pages/chat_list/stories_header.dart +++ b/lib/pages/chat_list/stories_header.dart @@ -132,11 +132,13 @@ class StoriesHeader extends StatelessWidget { avatarUrl: avatarUrl, userId: userId ?? 'Unknown', ), - lastMessage: room.lastEvent?.calcLocalizedBodyFallback( - MatrixLocals( - L10n.of(context)!, - ), - ), + lastMessage: room.hasPosts + ? room.lastEvent?.calcLocalizedBodyFallback( + MatrixLocals( + L10n.of(context)!, + ), + ) + : null, heroTag: 'stories_${room.id}', hasPosts: room.hasPosts || room == ownStoryRoom, showEditFab: userId == client.userID,