mirror of
https://github.com/array-in-a-matrix/xinny.git
synced 2024-05-15 10:59:15 -04:00
Fix unwanted changes
This commit is contained in:
parent
790bf5eac3
commit
19f674cf5f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue