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