Clamp both _cachedContactsUnreadTotal and _cachedChannelsUnreadTotal to >= 0 after decrementing in markContactRead() and markChannelRead(). This prevents the totals from going negative if the cache drifts out-of-sync, which could cause UI badges to display incorrect values.chore/offband-rebrand
parent
87bcb6a6a3
commit
afcc4db405
Loading…
Reference in new issue