| 3291 | } |
| 3292 | |
| 3293 | int Session::unreadBadgeIgnoreOne(Dialogs::Key key) const { |
| 3294 | const auto remove = (key && key.entry()->inChatList()) |
| 3295 | ? key.entry()->chatListUnreadState() |
| 3296 | : Dialogs::UnreadState(); |
| 3297 | return computeUnreadBadge(_chatsList.unreadState() - remove); |
| 3298 | } |
| 3299 | |
| 3300 | bool Session::unreadBadgeMutedIgnoreOne(Dialogs::Key key) const { |
| 3301 | if (!Core::App().settings().includeMutedCounter()) { |
no test coverage detected