Use "View community info" wording for communities.

This commit is contained in:
John Preston
2026-07-18 23:58:57 +04:00
parent f2967c1a3d
commit adf746a99a
@@ -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()) {