mirror of https://github.com/procxx/kepka.git
Beta version 1.6.6: Fix removing saved peers from chats list.
Regression was introduced in a7f67c4bc9
.
This commit is contained in:
parent
56b6673e17
commit
8aa0b31c1a
|
@ -2191,14 +2191,12 @@ void History::setChatListMessage(HistoryItem *item) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item) {
|
if (item) {
|
||||||
if (_chatListMessage) {
|
if (!_chatListMessage || !*_chatListMessage) {
|
||||||
if (!*_chatListMessage) {
|
|
||||||
Local::removeSavedPeer(peer);
|
Local::removeSavedPeer(peer);
|
||||||
} else if (!IsServerMsgId((*_chatListMessage)->id)
|
} else if (!IsServerMsgId((*_chatListMessage)->id)
|
||||||
&& (*_chatListMessage)->date() > item->date()) {
|
&& (*_chatListMessage)->date() > item->date()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_chatListMessage = item;
|
_chatListMessage = item;
|
||||||
setChatListTimeId(item->date());
|
setChatListTimeId(item->date());
|
||||||
} else if (!_chatListMessage || *_chatListMessage) {
|
} else if (!_chatListMessage || *_chatListMessage) {
|
||||||
|
|
Loading…
Reference in New Issue