mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix crash in calls box.
This commit is contained in:
parent
c4dfc634d0
commit
454fe8cdf7
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ void BoxController::prepare() {
|
|||
session().changes().messageUpdates(
|
||||
Data::MessageUpdate::Flag::NewAdded
|
||||
) | rpl::filter([=](const Data::MessageUpdate &update) {
|
||||
return (update.item->media()->call() != nullptr);
|
||||
const auto media = update.item->media();
|
||||
return (media != nullptr) && (media->call() != nullptr);
|
||||
}) | rpl::start_with_next([=](const Data::MessageUpdate &update) {
|
||||
insertRow(update.item, InsertWay::Prepend);
|
||||
}, lifetime());
|
||||
|
|
Loading…
Add table
Reference in a new issue