mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 10:01:00 +00:00
Fix build with GCC.
This commit is contained in:
parent
5d1812efc8
commit
3548aba652
@ -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 @@
|
||||
Subproject commit 9e70c25b63b174494f2077d73e305750ad593cf2
|
||||
Subproject commit fc5386f1fd4a17fafa88f1bca544e92c4c0ddf99
|
Loading…
Reference in New Issue
Block a user