mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Show some info for USER_BANNED_IN_CHANNEL error.
This commit is contained in:
@@ -1046,6 +1046,9 @@ bool MainWidget::sendMessageFail(const RPCError &error) {
|
|||||||
if (error.type() == qstr("PEER_FLOOD")) {
|
if (error.type() == qstr("PEER_FLOOD")) {
|
||||||
Ui::show(Box<InformBox>(PeerFloodErrorText(PeerFloodType::Send)));
|
Ui::show(Box<InformBox>(PeerFloodErrorText(PeerFloodType::Send)));
|
||||||
return true;
|
return true;
|
||||||
|
} else if (error.type() == qstr("USER_BANNED_IN_CHANNEL")) {
|
||||||
|
Ui::show(Box<InformBox>(lang(lng_group_not_accessible)));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user