mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
some crashes fixed
This commit is contained in:
@@ -1040,13 +1040,16 @@ bool DialogsInner::searchReceived(const QVector<MTPMessage> &messages, DialogsSe
|
||||
_lastSearchDate = lastDateFound;
|
||||
}
|
||||
}
|
||||
if (type == DialogsSearchFromStart || type == DialogsSearchFromOffset) {
|
||||
_lastSearchPeer = item->history()->peer;
|
||||
if (item) {
|
||||
if (type == DialogsSearchFromStart || type == DialogsSearchFromOffset) {
|
||||
_lastSearchPeer = item->history()->peer;
|
||||
}
|
||||
}
|
||||
MsgId msgId = item ? item->id : idFromMessage(*i);
|
||||
if (type == DialogsSearchMigratedFromStart || type == DialogsSearchMigratedFromOffset) {
|
||||
_lastSearchMigratedId = item->id;
|
||||
_lastSearchMigratedId = msgId;
|
||||
} else {
|
||||
_lastSearchId = item->id;
|
||||
_lastSearchId = msgId;
|
||||
}
|
||||
}
|
||||
if (type == DialogsSearchMigratedFromStart || type == DialogsSearchMigratedFromOffset) {
|
||||
|
Reference in New Issue
Block a user