From adf746a99a18c5752e4ffbcb8405feece0ea35da Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 18 Jul 2026 23:58:57 +0400 Subject: [PATCH] Use "View community info" wording for communities. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index d00215ee43..67155d2087 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -634,6 +634,7 @@ void Filler::addInfo() { } const auto controller = _controller; const auto weak = base::make_weak(_thread); + const auto channel = infoPeer->asChannel(); const auto text = _thread->asTopic() ? (_thread->peer()->isBot() ? tr::lng_context_view_thread(tr::now) @@ -642,6 +643,8 @@ void Filler::addInfo() { ? tr::lng_context_view_group(tr::now) : infoPeer->isUser() ? tr::lng_context_view_profile(tr::now) + : (channel && channel->isCommunity()) + ? tr::lng_context_view_community(tr::now) : tr::lng_context_view_channel(tr::now); _addAction(text, [=] { if (const auto strong = weak.get()) {