mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with GCC.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
Submodule Telegram/lib_ui updated: 9e70c25b63...fc5386f1fd
Reference in New Issue
Block a user