2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Update dialog row height on topic switch.

This commit is contained in:
John Preston
2022-11-29 21:36:34 +04:00
parent 3c799a5cc1
commit beaea9c57d
14 changed files with 80 additions and 2 deletions

View File

@@ -379,4 +379,15 @@ void Entry::updateChatListEntryPostponed() {
});
}
void Entry::updateChatListEntryHeight() {
auto &filters = _owner->chatsFilters();
for (auto &[filterId, rows] : _chatListLinks) {
const auto list = filterId
? filters.chatsList(filterId)
: _owner->chatsList(folder());
list->updateEntryHeight(rows);
}
session().changes().entryUpdated(this, Data::EntryUpdate::Flag::Height);
}
} // namespace Dialogs