mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-11 06:03:40 +00:00
Group community chats into one chat list row.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user