mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-19 00:47:03 +00:00
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.