mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-31 12:14:34 +00:00
crash fixed for 0.9.5
This commit is contained in:
parent
12673ab6fe
commit
21570c0479
@ -4305,9 +4305,12 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
|
||||
history.update();
|
||||
}
|
||||
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);
|
||||
}
|
||||
if (!h->dialogs.isEmpty()) {
|
||||
dlgUpdated(h->dialogs[0]);
|
||||
}
|
||||
}
|
||||
|
||||
ptsApplySkippedUpdates();
|
||||
|
Loading…
Reference in New Issue
Block a user