2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use different phrases for default restrictions.

This commit is contained in:
John Preston
2019-01-14 21:43:06 +04:00
parent 4f33be20d4
commit 22f1ffc72b
16 changed files with 359 additions and 171 deletions

View File

@@ -565,8 +565,10 @@ bool MainWidget::sendPaths(PeerId peerId) {
if (!peer->canWrite()) {
Ui::show(Box<InformBox>(lang(lng_forward_send_files_cant)));
return false;
} else if (peer->amRestricted(ChatRestriction::f_send_media)) {
Ui::show(Box<InformBox>(lang(lng_restricted_send_media)));
} else if (const auto key = Data::RestrictionErrorKey(
peer,
ChatRestriction::f_send_media)) {
Ui::show(Box<InformBox>(lang(*key)));
return false;
}
Ui::showPeerHistory(peer, ShowAtTheEndMsgId);