Fix default thread notification of the new RoomHeader (#12194)
This commit is contained in:
parent
a5f9df5855
commit
a3a387a1dd
2 changed files with 12 additions and 2 deletions
|
@ -44,9 +44,12 @@ export const useRoomThreadNotifications = (room: Room): NotificationLevel => {
|
|||
// If the current thread has unread messages, we're done.
|
||||
if (doesRoomOrThreadHaveUnreadMessages(thread)) {
|
||||
setNotificationLevel(NotificationLevel.Activity);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// default case
|
||||
setNotificationLevel(NotificationLevel.None);
|
||||
}, [room]);
|
||||
|
||||
useEventEmitter(room, RoomEvent.UnreadNotifications, updateNotification);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue