mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use folder_id / still_unread_count from updates.
This commit is contained in:
@@ -416,6 +416,17 @@ bool PeerData::setAbout(const QString &newAbout) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void PeerData::checkFolder(FolderId folderId) {
|
||||
const auto folder = folderId
|
||||
? owner().folderLoaded(folderId)
|
||||
: nullptr;
|
||||
if (const auto history = owner().historyLoaded(this)) {
|
||||
if (folder && history->folder() != folder) {
|
||||
session().api().requestDialogEntry(history);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PeerData::fillNames() {
|
||||
_nameWords.clear();
|
||||
_nameFirstLetters.clear();
|
||||
|
Reference in New Issue
Block a user