Show some info for USER_BANNED_IN_CHANNEL error.

This commit is contained in:
John Preston 2017-04-30 16:09:02 +03:00
parent 07a274f927
commit cd6a189990

View File

@ -1046,6 +1046,9 @@ bool MainWidget::sendMessageFail(const RPCError &error) {
if (error.type() == qstr("PEER_FLOOD")) {
Ui::show(Box<InformBox>(PeerFloodErrorText(PeerFloodType::Send)));
return true;
} else if (error.type() == qstr("USER_BANNED_IN_CHANNEL")) {
Ui::show(Box<InformBox>(lang(lng_group_not_accessible)));
return true;
}
return false;
}