chore: Hide pinned events in thread

This commit is contained in:
Christian Kußowski 2025-11-05 09:21:49 +01:00
parent 1884149be1
commit 4020317873
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 6 additions and 4 deletions

View file

@ -191,10 +191,11 @@ class ChatView extends StatelessWidget {
if (activeThreadId != null) {
appbarBottomHeight += ChatAppBarListTile.fixedHeight;
}
if (controller.room.pinnedEventIds.isNotEmpty) {
if (controller.room.pinnedEventIds.isNotEmpty &&
activeThreadId == null) {
appbarBottomHeight += ChatAppBarListTile.fixedHeight;
}
if (scrollUpBannerEventId != null) {
if (scrollUpBannerEventId != null && activeThreadId == null) {
appbarBottomHeight += ChatAppBarListTile.fixedHeight;
}
return Scaffold(
@ -269,7 +270,8 @@ class ChatView extends StatelessWidget {
),
),
),
if (scrollUpBannerEventId != null)
if (scrollUpBannerEventId != null &&
activeThreadId == null)
ChatAppBarListTile(
leading: IconButton(
color: theme.colorScheme.onSurfaceVariant,

View file

@ -59,7 +59,7 @@ class PinnedEvents extends StatelessWidget {
final pinnedEventIds = controller.room.pinnedEventIds;
if (pinnedEventIds.isEmpty) {
if (pinnedEventIds.isEmpty || controller.activeThreadId != null) {
return const SizedBox.shrink();
}