From cd6a189990c05f3fe9af4a718850dfe779e4b0ff Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 30 Apr 2017 16:09:02 +0300 Subject: [PATCH] Show some info for USER_BANNED_IN_CHANNEL error. --- Telegram/SourceFiles/mainwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 63e24bc02..5ead55b27 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1046,6 +1046,9 @@ bool MainWidget::sendMessageFail(const RPCError &error) { if (error.type() == qstr("PEER_FLOOD")) { Ui::show(Box(PeerFloodErrorText(PeerFloodType::Send))); return true; + } else if (error.type() == qstr("USER_BANNED_IN_CHANNEL")) { + Ui::show(Box(lang(lng_group_not_accessible))); + return true; } return false; }