Fix crash in updates handling.

This commit is contained in:
John Preston 2020-02-10 15:58:58 +04:00
parent 07cc05f62e
commit 770678e32a
1 changed files with 2 additions and 2 deletions

View File

@ -3807,8 +3807,8 @@ void MainWidget::feedUpdates(const MTPUpdates &updates, uint64 randomId) {
: nullptr; : nullptr;
}; };
if (const auto id = owner.messageIdByRandomId(randomId)) { if (const auto id = owner.messageIdByRandomId(randomId)) {
if (const auto local = owner.message(id); const auto local = owner.message(id);
local->isScheduled()) { if (local && local->isScheduled()) {
owner.scheduledMessages().sendNowSimpleMessage(d, local); owner.scheduledMessages().sendNowSimpleMessage(d, local);
} }
} }