mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
crash fixed for 0.9.5
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user