mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Disable all unread decorations on muted rooms
This commit is contained in:
parent
349c3f7090
commit
a5001e50aa
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue