Skip to content

Commit

Permalink
Fix build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 14, 2024
1 parent 5d1812e commit 3548aba
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
11 changes: 0 additions & 11 deletions Telegram/SourceFiles/payments/payments_reaction_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_ui

0 comments on commit 3548aba

Please sign in to comment.