diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp b/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp index 50cb210ad0..ae4349346d 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/earn/info_channel_earn_list.cpp @@ -1063,7 +1063,8 @@ void InnerWidget::fill() { if (hasCurrencyTab) { Ui::AddSkip(listsContainer); - const auto historyList = tabCurrencyList->entity(); + const auto historyList = tabCurrencyList->entity()->add( + object_ptr(tabCurrencyList->entity())); const auto addHistoryEntry = [=]( const Data::CreditsHistoryEntry &entry, const tr::phrase<> &text) { @@ -1312,22 +1313,17 @@ void InnerWidget::fill() { state->token = firstSlice.token; state->showed = firstSlice.list.size(); const auto max = firstSlice.total; - const auto wrap = listsContainer->add( + const auto wrap = tabCurrencyList->entity()->add( object_ptr>( - listsContainer, + tabCurrencyList->entity(), object_ptr( - listsContainer, - tr::lng_channel_earn_history_show_more( - lt_count, - state->showed.value( - ) | rpl::map( - max - rpl::mappers::_1 - ) | tr::to_count()), + tabCurrencyList->entity(), + tr::lng_channels_your_more(), st::statisticsShowMoreButton))); const auto button = wrap->entity(); Ui::AddToggleUpDownArrowToMoreButton(button); - wrap->toggle(true, anim::type::instant); + wrap->toggle(!firstSlice.allLoaded, anim::type::instant); const auto handleReceived = [=]( Data::EarnHistorySlice slice) { state->loading = false;