mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 06:37:24 +02:00
Fix crash in updates handling.
This commit is contained in:
parent
07cc05f62e
commit
770678e32a
1 changed files with 2 additions and 2 deletions
|
@ -3807,8 +3807,8 @@ void MainWidget::feedUpdates(const MTPUpdates &updates, uint64 randomId) {
|
|||
: nullptr;
|
||||
};
|
||||
if (const auto id = owner.messageIdByRandomId(randomId)) {
|
||||
if (const auto local = owner.message(id);
|
||||
local->isScheduled()) {
|
||||
const auto local = owner.message(id);
|
||||
if (local && local->isScheduled()) {
|
||||
owner.scheduledMessages().sendNowSimpleMessage(d, local);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue