mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Beta version 5.5.7: Workaround MSVC bug.
This commit is contained in:
parent
b518f7c4c4
commit
1cb92ef69a
1 changed files with 3 additions and 1 deletions
|
@ -318,6 +318,8 @@ HistoryWidget::HistoryWidget(
|
|||
) | rpl::start_with_next(crl::guard(_list, [=] {
|
||||
_list->onParentGeometryChanged();
|
||||
}), lifetime());
|
||||
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
_scroll->addContentRequests(
|
||||
) | rpl::start_with_next([=] {
|
||||
if (_history && _history->loadedAtBottom()) {
|
||||
|
@ -332,7 +334,7 @@ HistoryWidget::HistoryWidget(
|
|||
if (tryToAppend() == Result::MediaLoading) {
|
||||
const auto sharedLifetime = std::make_shared<rpl::lifetime>();
|
||||
session().downloaderTaskFinished(
|
||||
) | rpl::start_with_next([=, weak = Ui::MakeWeak(this)] {
|
||||
) | rpl::start_with_next([=] {
|
||||
if (const auto strong = weak.data()) {
|
||||
if (tryToAppend() != Result::MediaLoading) {
|
||||
sharedLifetime->destroy();
|
||||
|
|
Loading…
Add table
Reference in a new issue