mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Create dialog rows only with known folders.
This commit is contained in:
@@ -234,8 +234,14 @@ void Folder::requestChatListMessage() {
|
||||
}
|
||||
}
|
||||
|
||||
TimeId Folder::adjustedChatListTimeId() const {
|
||||
return _chatsList.empty()
|
||||
? TimeId(0)
|
||||
: (*_chatsList.begin())->entry()->adjustedChatListTimeId();
|
||||
}
|
||||
|
||||
int Folder::unreadCount() const {
|
||||
return _unreadCount ? *_unreadCount : 0;
|
||||
return _unreadCount.value_or(0);
|
||||
}
|
||||
|
||||
rpl::producer<int> Folder::unreadCountValue() const {
|
||||
|
Reference in New Issue
Block a user