mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Fixed possible crash in scroll of empty HistoryWidget.
This commit is contained in:
parent
746f8d835d
commit
455c7280a4
@ -264,7 +264,8 @@ HistoryWidget::HistoryWidget(
|
|||||||
}), lifetime());
|
}), lifetime());
|
||||||
_scroll->addContentRequests(
|
_scroll->addContentRequests(
|
||||||
) | rpl::start_with_next([=] {
|
) | rpl::start_with_next([=] {
|
||||||
if (_history->loadedAtBottom()
|
if (_history
|
||||||
|
&& _history->loadedAtBottom()
|
||||||
&& session().data().sponsoredMessages().append(_history)) {
|
&& session().data().sponsoredMessages().append(_history)) {
|
||||||
_scroll->contentAdded();
|
_scroll->contentAdded();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user