mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix pinned chat to supergroup upgrade bug.
Pinned chats were always updated in dialogs list, even after being migrated to supergroups. That was bringing them back to chats list.
This commit is contained in:
@@ -1859,12 +1859,14 @@ void History::setLastMessage(HistoryItem *msg) {
|
||||
}
|
||||
|
||||
bool History::needUpdateInChatList() const {
|
||||
if (inChatList(Dialogs::Mode::All) || isPinnedDialog()) {
|
||||
if (inChatList(Dialogs::Mode::All)) {
|
||||
return true;
|
||||
} else if (peer->migrateTo()) {
|
||||
return false;
|
||||
} else if (isPinnedDialog()) {
|
||||
return true;
|
||||
}
|
||||
return (!peer->isChannel() || peer->asChannel()->amIn());
|
||||
return !peer->isChannel() || peer->asChannel()->amIn();
|
||||
}
|
||||
|
||||
void History::setChatsListDate(const QDateTime &date) {
|
||||
|
Reference in New Issue
Block a user