From cef43e7f0690ec2a2ab1d36f2fb00c027ee8583d Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Thu, 28 Nov 2024 21:08:47 +0400
Subject: [PATCH] Fix build with Xcode.

---
 Telegram/SourceFiles/ui/widgets/expandable_peer_list.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Telegram/SourceFiles/ui/widgets/expandable_peer_list.cpp b/Telegram/SourceFiles/ui/widgets/expandable_peer_list.cpp
index 343d623aa..fa43f4b92 100644
--- a/Telegram/SourceFiles/ui/widgets/expandable_peer_list.cpp
+++ b/Telegram/SourceFiles/ui/widgets/expandable_peer_list.cpp
@@ -165,10 +165,11 @@ void AddExpandablePeerList(
 					const auto it = map.find(peer->id);
 					return (it == map.end() || !it->second)
 						? richName
-						: TextWithEntities(
-							(u"(%1) "_q).arg(it->second)).append(richName);
+						: TextWithEntities{
+							(u"(%1) "_q).arg(it->second)
+						}.append(richName);
 				})
-				: std::move(name),
+				: std::move(name) | rpl::type_erased(),
 				st::defaultBoxCheckbox,
 				std::make_unique<Ui::CheckView>(
 					st::defaultCheck,