Update unread messages count only if room is not muted

This commit is contained in:
2025-12-01 10:30:54 +01:00
parent 196671d0fb
commit 849aef9343

View File

@@ -110,7 +110,7 @@ function _MainMessageWidget(p: {
p.onRoomsListUpdate((r) => { p.onRoomsListUpdate((r) => {
const n = [...r]; const n = [...r];
const idx = r.findIndex((el) => el.id === m.room_id); const idx = r.findIndex((el) => el.id === m.room_id);
if (idx) if (idx && n[idx].notifications === "AllMessages")
n[idx] = { n[idx] = {
...n[idx], ...n[idx],
number_unread_messages: n[idx].number_unread_messages + 1, number_unread_messages: n[idx].number_unread_messages + 1,