diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index e62b06d36..d84143ec4 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -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();