From aacb7206642afec8638f2df75d97b9f8cadb52c6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 24 Dec 2022 08:15:20 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp | 2 +- .../SourceFiles/history/view/history_view_scheduled_section.h | 2 +- Telegram/SourceFiles/ui/controls/userpic_button.cpp | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp b/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp index 8f0ef0f8a9..a39b7eb47c 100644 --- a/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/prepare_short_info_box.cpp @@ -490,7 +490,7 @@ PreparedShortInfoUserpic PrepareShortInfoFallbackUserpic( 1, 1, 1)) - : rpl::never(); + : (rpl::never() | rpl::type_erased()); auto process = [=](not_null state) { if (photoId) { ProcessFullPhoto(peer, state, peer->owner().photo(*photoId)); diff --git a/Telegram/SourceFiles/history/view/history_view_scheduled_section.h b/Telegram/SourceFiles/history/view/history_view_scheduled_section.h index 0bf0cc468b..ec3d127f0a 100644 --- a/Telegram/SourceFiles/history/view/history_view_scheduled_section.h +++ b/Telegram/SourceFiles/history/view/history_view_scheduled_section.h @@ -30,7 +30,7 @@ namespace Ui { class ScrollArea; class PlainShadow; class FlatButton; -class PreparedList; +struct PreparedList; class SendFilesWay; } // namespace Ui diff --git a/Telegram/SourceFiles/ui/controls/userpic_button.cpp b/Telegram/SourceFiles/ui/controls/userpic_button.cpp index 76a6ae29e9..9750290493 100644 --- a/Telegram/SourceFiles/ui/controls/userpic_button.cpp +++ b/Telegram/SourceFiles/ui/controls/userpic_button.cpp @@ -618,7 +618,6 @@ void UserpicButton::processPeerPhoto() { if (_showPeerUserpic) { _peer->loadUserpic(); } else if (_nonPersonalView) { - AssertIsDebug(); showNonPersonal->load(Data::FileOriginFullUser{ peerToUser(user->id), });