mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Beta version 1.6.6: Fix removing saved peers from chats list.
Regression was introduced in a7f67c4bc9
.
This commit is contained in:
@@ -2191,13 +2191,11 @@ void History::setChatListMessage(HistoryItem *item) {
|
||||
return;
|
||||
}
|
||||
if (item) {
|
||||
if (_chatListMessage) {
|
||||
if (!*_chatListMessage) {
|
||||
Local::removeSavedPeer(peer);
|
||||
} else if (!IsServerMsgId((*_chatListMessage)->id)
|
||||
&& (*_chatListMessage)->date() > item->date()) {
|
||||
return;
|
||||
}
|
||||
if (!_chatListMessage || !*_chatListMessage) {
|
||||
Local::removeSavedPeer(peer);
|
||||
} else if (!IsServerMsgId((*_chatListMessage)->id)
|
||||
&& (*_chatListMessage)->date() > item->date()) {
|
||||
return;
|
||||
}
|
||||
_chatListMessage = item;
|
||||
setChatListTimeId(item->date());
|
||||
|
Reference in New Issue
Block a user