mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Use "View community info" wording for communities.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user