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) {