Fix build with GCC.

This commit is contained in:
John Preston 2024-08-14 23:14:22 +03:00
parent 5d1812efc8
commit 3548aba652
4 changed files with 1 additions and 17 deletions

View file

@ -313,10 +313,6 @@ void PaidReactionToast::clearHiddenHiding() {
void PaidReactionToast::setupLottiePreview(
not_null<Ui::RpWidget*> 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();

View file

@ -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) {

View file

@ -87,17 +87,6 @@ void TryAddingPaidReaction(
done);
}
[[nodiscard]] int CountLocalPaid(not_null<HistoryItem*> item) {
const auto paid = [](const std::vector<Data::MessageReaction> &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<HistoryItem*> item) {

@ -1 +1 @@
Subproject commit 9e70c25b63b174494f2077d73e305750ad593cf2
Subproject commit fc5386f1fd4a17fafa88f1bca544e92c4c0ddf99