From 057b8d9e74d12939222fe1fe4e46b2ad6ecf36d5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 31 Jul 2025 23:00:06 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/dialogs/ui/posts_search_intro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/ui/posts_search_intro.cpp b/Telegram/SourceFiles/dialogs/ui/posts_search_intro.cpp index b24c9d5f03..143fe48f54 100644 --- a/Telegram/SourceFiles/dialogs/ui/posts_search_intro.cpp +++ b/Telegram/SourceFiles/dialogs/ui/posts_search_intro.cpp @@ -152,7 +152,8 @@ void PostsSearchIntro::setup() { }) | rpl::flatten_latest(); auto footer = _state.value( - ) | rpl::map([](const PostsSearchIntroState &state) { + ) | rpl::map([](const PostsSearchIntroState &state) + -> rpl::producer { if (state.needsPremium) { return tr::lng_posts_need_subscribe(); } else if (state.freeSearchesLeft > 0) {