feat: Display indicator for unread muted rooms

This commit is contained in:
Christian Pauly 2022-02-14 11:22:36 +01:00
commit 9a594824bb
5 changed files with 16 additions and 13 deletions

View file

@ -224,7 +224,7 @@ class ChatController extends State<Chat> {
}
filteredEvents = timeline!.getFilteredEvents(unfolded: unfolded);
timeline!.requestKeys();
if (room!.notificationCount > 0 &&
if (room!.hasNewMessages &&
timeline != null &&
timeline!.events.isNotEmpty &&
Matrix.of(context).webHasFocus) {