mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
crash fixed for 0.9.5
This commit is contained in:
@@ -4305,9 +4305,12 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
|
|||||||
history.update();
|
history.update();
|
||||||
}
|
}
|
||||||
if (History *h = App::historyLoaded(id)) {
|
if (History *h = App::historyLoaded(id)) {
|
||||||
if (h->lastMsg->out() && h->lastMsg->id <= d.vmax_id.v) {
|
if (h->lastMsg && h->lastMsg->out() && h->lastMsg->id <= d.vmax_id.v) {
|
||||||
dlgUpdated(h, h->lastMsg->id);
|
dlgUpdated(h, h->lastMsg->id);
|
||||||
}
|
}
|
||||||
|
if (!h->dialogs.isEmpty()) {
|
||||||
|
dlgUpdated(h->dialogs[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ptsApplySkippedUpdates();
|
ptsApplySkippedUpdates();
|
||||||
|
Reference in New Issue
Block a user