mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-12 03:09:15 +00:00
342e270a1f
removeChatItem decremented the unread counter unconditionally for an RcvNew item. iOS, unlike Android's self-clamping decreaseCounterInPrimaryContext, could drive the badge negative if the item entered the list via upsertChatItem's addChat path (no increment) and was then deleted unread. Only decrement when the chat's unreadCount > 0.