mirror of https://github.com/vector-im/riot-web
Disable all unread decorations on muted rooms
parent
349c3f7090
commit
a5001e50aa
|
@ -81,7 +81,12 @@ export class RoomNotificationState extends EventEmitter implements IDestroyable,
|
||||||
private updateNotificationState() {
|
private updateNotificationState() {
|
||||||
const before = {count: this.count, symbol: this.symbol, color: this.color};
|
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._color = NotificationColor.Red;
|
||||||
this._symbol = "!";
|
this._symbol = "!";
|
||||||
this._count = 1; // not used, technically
|
this._count = 1; // not used, technically
|
||||||
|
|
Loading…
Reference in New Issue