Disable all unread decorations on muted rooms

This commit is contained in:
Travis Ralston 2020-07-02 13:33:24 -06:00
parent 349c3f7090
commit a5001e50aa

View file

@ -81,7 +81,12 @@ export class RoomNotificationState extends EventEmitter implements IDestroyable,
private updateNotificationState() {
const before = {count: this.count, symbol: this.symbol, color: this.color};
if (this.roomIsInvite) {
if (RoomNotifs.getRoomNotifsState(this.room.roomId) === RoomNotifs.MUTE) {
// 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 = "!";
this._count = 1; // not used, technically