Skip to content

Commit

Permalink
Fix build with Xcode and GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 2, 2024
1 parent 641e747 commit 9c77346
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/boxes/moderate_messages_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 0 additions & 3 deletions Telegram/SourceFiles/data/stickers/data_stickers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion Telegram/SourceFiles/history/history_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_ui

0 comments on commit 9c77346

Please sign in to comment.