Ignore activity in TAC (#12269)

This commit is contained in:
Florian Duros 2024-02-21 13:19:25 +01:00 committed by GitHub
parent 6d55ce0217
commit d9a20b00e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 60 deletions

View file

@ -96,6 +96,12 @@ function computeUnreadThreadRooms(mxClient: MatrixClient, msc3946ProcessDynamicP
if (VisibilityProvider.instance.isRoomVisible(room) && doesRoomHaveUnreadThreads(room)) {
// Get the greatest notification level of all rooms
const notificationLevel = getThreadNotificationLevel(room);
// If the room has an activity notification or less, we ignore it
if (notificationLevel <= NotificationLevel.Activity) {
continue;
}
if (notificationLevel > greatestNotificationLevel) {
greatestNotificationLevel = notificationLevel;
}