MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / unreadBadgeIgnoreOne

Method unreadBadgeIgnoreOne

Telegram/SourceFiles/data/data_session.cpp:3293–3298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3291}
3292
3293int 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
3300bool Session::unreadBadgeMutedIgnoreOne(Dialogs::Key key) const {
3301 if (!Core::App().settings().includeMutedCounter()) {

Callers 1

updateUnreadBadgeMethod · 0.80

Calls 5

inChatListMethod · 0.80
unreadStateMethod · 0.80
UnreadStateClass · 0.70
entryMethod · 0.45
chatListUnreadStateMethod · 0.45

Tested by

no test coverage detected