mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed possible crash in scroll of empty HistoryWidget.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user