Restrict sending other messages in interface only if all messages are restricted.

GitOrigin-RevId: 032bd7d91ae66baa85a5d97dc560964e87889f2d
This commit is contained in:
levlam 2019-07-01 00:17:18 +03:00
parent 989235317d
commit 8e9e60d929
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ RestrictedRights::RestrictedRights(bool can_send_messages, bool can_send_media,
tl_object_ptr<td_api::chatPermissions> RestrictedRights::get_chat_permissions_object() const {
return td_api::make_object<td_api::chatPermissions>(
can_send_messages(), can_send_media(), can_send_polls(),
can_send_stickers() && can_send_animations() && can_send_games() && can_use_inline_bots(),
can_send_stickers() || can_send_animations() || can_send_games() || can_use_inline_bots(),
can_add_web_page_previews(), can_change_info_and_settings(), can_invite_users(), can_pin_messages());
}