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:
@@ -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
|
||||
|
Reference in New Issue
Block a user