Group community chats into one chat list row.

This commit is contained in:
John Preston
2026-06-12 14:32:58 +04:00
parent 6a4e9e9ee3
commit 31cd148e87
11 changed files with 471 additions and 28 deletions
@@ -420,11 +420,16 @@ PositionChange Entry::adjustByPosInChatList(
}
void Entry::setChatListTimeId(TimeId date) {
_timeId = date;
const auto was = std::exchange(_timeId, date);
updateChatListSortPosition();
if (const auto folder = this->folder()) {
folder->updateChatListSortPosition();
}
if (was != date) {
if (const auto history = asHistory()) {
history->communityChatsListDateChanged(was);
}
}
}
int Entry::posInChatList(FilterId filterId) const {