mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix build with Xcode.
This commit is contained in:
parent
68b3d75705
commit
00e6da9d64
2 changed files with 4 additions and 6 deletions
|
@ -198,9 +198,6 @@ struct ResaleFilter {
|
||||||
base::flat_set<AttributeId> attributes;
|
base::flat_set<AttributeId> attributes;
|
||||||
ResaleSort sort = ResaleSort::Date;
|
ResaleSort sort = ResaleSort::Date;
|
||||||
|
|
||||||
friend inline auto operator<=>(
|
|
||||||
const ResaleFilter &,
|
|
||||||
const ResaleFilter &) = default;
|
|
||||||
friend inline bool operator==(
|
friend inline bool operator==(
|
||||||
const ResaleFilter &,
|
const ResaleFilter &,
|
||||||
const ResaleFilter &) = default;
|
const ResaleFilter &) = default;
|
||||||
|
@ -1247,7 +1244,7 @@ struct ResaleTabs {
|
||||||
};
|
};
|
||||||
actionWithIcon(tr::lng_gift_resale_sort_price(tr::now), [=] {
|
actionWithIcon(tr::lng_gift_resale_sort_price(tr::now), [=] {
|
||||||
sort(ResaleSort::Price);
|
sort(ResaleSort::Price);
|
||||||
}, &st::menuIconOrderPrice, is(ResaleSort::Price)); AssertIsDebug(icons);
|
}, &st::menuIconOrderPrice, is(ResaleSort::Price));
|
||||||
actionWithIcon(tr::lng_gift_resale_sort_date(tr::now), [=] {
|
actionWithIcon(tr::lng_gift_resale_sort_date(tr::now), [=] {
|
||||||
sort(ResaleSort::Date);
|
sort(ResaleSort::Date);
|
||||||
}, &st::menuIconOrderDate, is(ResaleSort::Date));
|
}, &st::menuIconOrderDate, is(ResaleSort::Date));
|
||||||
|
@ -4920,7 +4917,7 @@ void ShowResaleGiftBoughtToast(
|
||||||
const Data::UniqueGift &gift) {
|
const Data::UniqueGift &gift) {
|
||||||
show->showToast({
|
show->showToast({
|
||||||
.title = tr::lng_gift_sent_title(tr::now),
|
.title = tr::lng_gift_sent_title(tr::now),
|
||||||
.text = (to->isSelf()
|
.text = TextWithEntities{ (to->isSelf()
|
||||||
? tr::lng_gift_sent_resale_done_self(
|
? tr::lng_gift_sent_resale_done_self(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_gift,
|
lt_gift,
|
||||||
|
@ -4929,6 +4926,7 @@ void ShowResaleGiftBoughtToast(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_user,
|
lt_user,
|
||||||
to->shortName())),
|
to->shortName())),
|
||||||
|
},
|
||||||
.duration = kUpgradeDoneToastDuration,
|
.duration = kUpgradeDoneToastDuration,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ void TranslateTracker::setup() {
|
||||||
|
|
||||||
const auto channel = peer->asChannel();
|
const auto channel = peer->asChannel();
|
||||||
auto autoTranslationValue = (channel
|
auto autoTranslationValue = (channel
|
||||||
? channel->flagsValue()
|
? (channel->flagsValue() | rpl::type_erased())
|
||||||
: rpl::single(Data::Flags<ChannelDataFlags>::Change({}, {}))
|
: rpl::single(Data::Flags<ChannelDataFlags>::Change({}, {}))
|
||||||
) | rpl::map([=](Data::Flags<ChannelDataFlags>::Change data) {
|
) | rpl::map([=](Data::Flags<ChannelDataFlags>::Change data) {
|
||||||
return (data.value & ChannelDataFlag::AutoTranslation);
|
return (data.value & ChannelDataFlag::AutoTranslation);
|
||||||
|
|
Loading…
Add table
Reference in a new issue