mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-14 11:30:18 +00:00
Unread counter above the profiles counted unread mentions in groups with mentions-only notifications, but nothing in muted chats, so two profiles with chats that both show as muted could show different counters. getUsersInfo now also counts chats marked unread - 1 per chat, unless the chat has unread items counted already. Muted chats are not counted at all, including when they are marked unread. Clients use the same rule in Chat.userUnreadCount and update the counter by the difference between what the chat contributed before and after, so that muting a chat or marking it unread updates the counter without reloading.