2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

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

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;
}