From 57d0b1d2157359abedd8571406a337d1f8bc03cd Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 12 Mar 2018 10:55:30 +0300 Subject: [PATCH] Show error when joining a full group. --- Telegram/Resources/langs/lang.strings | 1 + Telegram/SourceFiles/history/history_widget.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 308b51536..e12f0e95b 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 ffd4271ea..77530b888 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;