Update unread messages count only if room is not muted
This commit is contained in:
@@ -110,7 +110,7 @@ function _MainMessageWidget(p: {
|
||||
p.onRoomsListUpdate((r) => {
|
||||
const n = [...r];
|
||||
const idx = r.findIndex((el) => el.id === m.room_id);
|
||||
if (idx)
|
||||
if (idx && n[idx].notifications === "AllMessages")
|
||||
n[idx] = {
|
||||
...n[idx],
|
||||
number_unread_messages: n[idx].number_unread_messages + 1,
|
||||
|
||||
Reference in New Issue
Block a user