Don't use MTP* for ChatAdminRight / ChatRestriction.

This commit is contained in:
John Preston
2021-07-08 13:34:06 +03:00
parent 8e73a6a6ff
commit 2ffda9f240
38 changed files with 649 additions and 569 deletions
+1 -1
View File
@@ -610,7 +610,7 @@ bool MainWidget::sendPaths(PeerId peerId) {
return false;
} else if (const auto error = Data::RestrictionError(
peer,
ChatRestriction::f_send_media)) {
ChatRestriction::SendMedia)) {
Ui::show(Box<InformBox>(*error));
return false;
}