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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user