From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Tue, 6 Sep 2022 08:55:13 +0000 (+0530) Subject: Fix unwanted changes X-Git-Tag: v2.2.0~28 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=19f674cf5f20f2a2f933107ca728b8cc0cd6bd61;p=cinny.git Fix unwanted changes --- diff --git a/src/client/state/Notifications.js b/src/client/state/Notifications.js index 309c322..d332f1f 100644 --- a/src/client/state/Notifications.js +++ b/src/client/state/Notifications.js @@ -165,7 +165,7 @@ class Notifications extends EventEmitter { _setNoti(roomId, total, highlight) { const addNoti = (id, t, h, fromId) => { - const prevTotal = this.roomIdToNoti.has(id) ? this.getT : null; + const prevTotal = this.roomIdToNoti.get(id)?.total ?? null; const noti = this.getNoti(id); noti.total += t;