mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed possible crash in scroll of empty HistoryWidget.
This commit is contained in:
parent
746f8d835d
commit
455c7280a4
1 changed files with 2 additions and 1 deletions
|
@ -264,7 +264,8 @@ HistoryWidget::HistoryWidget(
|
|||
}), lifetime());
|
||||
_scroll->addContentRequests(
|
||||
) | rpl::start_with_next([=] {
|
||||
if (_history->loadedAtBottom()
|
||||
if (_history
|
||||
&& _history->loadedAtBottom()
|
||||
&& session().data().sponsoredMessages().append(_history)) {
|
||||
_scroll->contentAdded();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue