Skip to content

Commit

Permalink
Also show unread dot for muted chats if unread
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiritCroc committed Jan 14, 2023
1 parent 2d34475 commit b546db4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stores/notifications/RoomNotificationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,17 @@ export class RoomNotificationState extends NotificationState implements IDestroy
this.room.client, this.room.roomId,
) === RoomNotifs.RoomNotifState.Mute &&
!markedUnread) {
if (Unread.doesRoomHaveUnreadMessages(this.room)) {
// SchildiChat: muted can still show unread counter
this._color = NotificationColor.Bold;
this._symbol = null;
this._count = 0;
} else {
// When muted we suppress all notification states, even if we have context on them.
this._color = NotificationColor.None;
this._symbol = null;
this._count = 0;
}
} else if (this.roomIsInvite) {
this._color = NotificationColor.Red;
this._symbol = "!";
Expand Down

0 comments on commit b546db4

Please sign in to comment.