Fix build with Xcode and GCC.

This commit is contained in:
John Preston 2024-05-02 12:54:20 +04:00
parent 641e74763f
commit 9c77346f36
4 changed files with 2 additions and 6 deletions

View file

@ -764,7 +764,7 @@ void DeleteChatBox(not_null<Ui::GenericBox*> box, not_null<PeerData*> peer) {
? tr::lng_saved_messages() | Ui::Text::ToBold()
: maybeUser
? tr::lng_profile_delete_conversation() | Ui::Text::ToBold()
: rpl::single(Ui::Text::Bold(peer->name())),
: rpl::single(Ui::Text::Bold(peer->name())) | rpl::type_erased(),
box->getDelegate()->style().title);
line->widthValue(
) | rpl::start_with_next([=](int width) {

View file

@ -1172,9 +1172,6 @@ std::vector<not_null<DocumentData*>> Stickers::getPremiumList(uint64 seed) {
const auto CreateFeaturedSortKey = [&](not_null<DocumentData*> document) {
return CreateSortKey(document, kSlice * 2);
};
const auto CreateOtherSortKey = [&](not_null<DocumentData*> document) {
return CreateSortKey(document, 0);
};
const auto InstallDateAdjusted = [&](
TimeId date,
not_null<DocumentData*> document) {

View file

@ -224,7 +224,6 @@ std::unique_ptr<Data::Media> HistoryItem::CreateMedia(
return nullptr;
});
}, [&](const MTPDmessageMediaGeoLive &media) -> Result {
const auto period = media.vperiod().v;
return media.vgeo().match([&](const MTPDgeoPoint &point) -> Result {
return std::make_unique<Data::MediaLocation>(
item,

@ -1 +1 @@
Subproject commit d703a804dfcfeb8bd1687b497726804708dc767f
Subproject commit 6e924177b7ccf690ab6aeb7c5c4b462f59c84414