Use a hidden-chat-specific not-accessible toast

This commit is contained in:
John Preston
2026-06-30 23:42:38 +04:00
parent 4fe184ac42
commit ea3908309f
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -2287,6 +2287,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_community_hidden_chat_about" = "Only invited members and community admins will see this chat.";
"lng_community_hidden_status" = "Hidden";
"lng_community_hidden_chat_title" = "Hidden Chat";
"lng_community_hidden_not_accessible" = "You can't join or view this group until an admin invites you.";
"lng_community_join_sure" = "Do you want to join {group}?";
"lng_community_admin_title" = "You are a community admin";
"lng_community_admin_about" = "You can now edit {community} info and use other admin tools.";
@@ -124,7 +124,8 @@ CommunityRequestableList::CommunityRequestableList(
const auto joinable = channel
&& (!community->isHidden(peer) || channel->amCreator());
if (!joinable) {
_controller->showToast(tr::lng_group_not_accessible(tr::now));
_controller->showToast(
tr::lng_community_hidden_not_accessible(tr::now));
return;
}
const auto join = [=](Fn<void()> close) {