diff --git a/src/client/state/Notifications.js b/src/client/state/Notifications.js index f5ecce2b..b5ba4e04 100644 --- a/src/client/state/Notifications.js +++ b/src/client/state/Notifications.js @@ -103,6 +103,10 @@ class Notifications extends EventEmitter { const prevTotal = noti.total; noti.total -= total; noti.highlight -= highlight; + if (noti.total < 0) { + noti.total = 0; + noti.highlight = 0; + } if (childId && noti.from !== null) { noti.from.delete(childId); }