Fix unwanted changes
This commit is contained in:
parent
bfd0dc5d3a
commit
cf52eadf40
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class Notifications extends EventEmitter {
|
||||||
|
|
||||||
_setNoti(roomId, total, highlight) {
|
_setNoti(roomId, total, highlight) {
|
||||||
const addNoti = (id, t, h, fromId) => {
|
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);
|
const noti = this.getNoti(id);
|
||||||
|
|
||||||
noti.total += t;
|
noti.total += t;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue