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

Method chatListBadgesState

Telegram/SourceFiles/data/data_folder.cpp:385–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385Dialogs::BadgesState Folder::chatListBadgesState() const {
386 auto result = Dialogs::BadgesForUnread(
387 chatListUnreadState(),
388 Dialogs::CountInBadge::Chats,
389 Dialogs::IncludeInBadge::All);
390 result.unreadMuted
391 = result.mentionMuted
392 = result.reactionMuted
393 = result.pollMuted
394 = true;
395 if (result.unread && !result.unreadCounter) {
396 result.unreadCounter = 1;
397 }
398 return result;
399}
400
401HistoryItem *Folder::chatListMessage() const {
402 return nullptr;

Callers 10

containsMethod · 0.45
RowAccessibilityNameFunction · 0.45
SubItemValueFunction · 0.45
paintCollapsedRowMethod · 0.45
computeJumpMethod · 0.45
refreshBadgeMethod · 0.45
TopPeersContentFunction · 0.45
PaintMethod · 0.45
prepareMethod · 0.45

Calls 1

BadgesForUnreadFunction · 0.85

Tested by

no test coverage detected