diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 308b51536d..e12f0e95b4 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -819,6 +819,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_channel_not_accessible" = "Sorry, this channel is not accessible."; "lng_group_not_accessible" = "Sorry, this group is not accessible."; +"lng_group_full" = "Sorry, this group is full."; "lng_channels_too_much_public_about" = "Sorry, you have reserved too many public usernames. You can revoke the link from one of your older groups or channels."; "lng_channels_too_much_public_revoke_confirm_group" = "Are you sure you want to revoke the link {link}?\n\nThe group «{group}» will become private."; diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index ffd4271ea7..77530b8881 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -2995,6 +2995,8 @@ bool HistoryWidget::joinFail(const RPCError &error, mtpRequestId req) { return true; } else if (error.type() == qstr("CHANNELS_TOO_MUCH")) { Ui::show(Box(lang(lng_join_channel_error))); + } else if (error.type() == qstr("USERS_TOO_MUCH")) { + Ui::show(Box(lang(lng_group_full))); } return false;