| 383 | } |
| 384 | |
| 385 | Dialogs::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 | |
| 401 | HistoryItem *Folder::chatListMessage() const { |
| 402 | return nullptr; |
no test coverage detected