diff --git a/Telegram/SourceFiles/history/view/history_view_paid_reaction_toast.cpp b/Telegram/SourceFiles/history/view/history_view_paid_reaction_toast.cpp index fcb83f767..ef279d68f 100644 --- a/Telegram/SourceFiles/history/view/history_view_paid_reaction_toast.cpp +++ b/Telegram/SourceFiles/history/view/history_view_paid_reaction_toast.cpp @@ -313,10 +313,6 @@ void PaidReactionToast::clearHiddenHiding() { void PaidReactionToast::setupLottiePreview( not_null widget, int size) { - const auto generate = [&](const QString &name) { - const auto session = &_owner->session(); - return ChatHelpers::GenerateLocalTgsSticker(session, name); - }; const auto document = _owner->reactions().paidToastAnimation(); const auto bytes = document->createMediaView()->bytes(); 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 30022f364..756fb7229 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 @@ -1402,7 +1402,6 @@ void InnerWidget::fill() { if (hasCreditsTab) { const auto controller = _controller->parentController(); const auto show = controller->uiShow(); - const auto premiumBot = _peer->owner().peer(data.premiumBotId); const auto entryClicked = [=]( const Data::CreditsHistoryEntry &e, const Data::SubscriptionEntry &s) { diff --git a/Telegram/SourceFiles/payments/payments_reaction_process.cpp b/Telegram/SourceFiles/payments/payments_reaction_process.cpp index 57c769f12..57de72432 100644 --- a/Telegram/SourceFiles/payments/payments_reaction_process.cpp +++ b/Telegram/SourceFiles/payments/payments_reaction_process.cpp @@ -87,17 +87,6 @@ void TryAddingPaidReaction( done); } -[[nodiscard]] int CountLocalPaid(not_null item) { - const auto paid = [](const std::vector &v) { - const auto i = ranges::find( - v, - Data::ReactionId::Paid(), - &Data::MessageReaction::id); - return (i != end(v)) ? i->count : 0; - }; - return paid(item->reactionsWithLocal()) - paid(item->reactions()); -} - } // namespace bool LookupMyPaidAnonymous(not_null item) { diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 9e70c25b6..fc5386f1f 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 9e70c25b63b174494f2077d73e305750ad593cf2 +Subproject commit fc5386f1fd4a17fafa88f1bca544e92c4c0ddf99