mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Disable all unread decorations on muted rooms
This commit is contained in:
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
Block a user