mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Use a hidden-chat-specific not-accessible toast
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user