diff options
| author | levlam <levlam@telegram.org> | 2023-10-31 13:27:56 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-10-31 13:27:56 +0300 |
| commit | 2ad5a86fa78a5859051f2e856269ff26aa424213 (patch) | |
| tree | 8c0ad769233728cff7b94d9bfba8a670915f4dd8 /td/telegram/DialogParticipant.cpp | |
| parent | 9cf1afe1b0553ab5ccc722acaad4931a6dccd362 (diff) | |
Fix DialogParticipantStatus::get_effective_restricted_rights().
Diffstat (limited to 'td/telegram/DialogParticipant.cpp')
| -rw-r--r-- | td/telegram/DialogParticipant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/DialogParticipant.cpp b/td/telegram/DialogParticipant.cpp index 1dab34382..22b4a1599 100644 --- a/td/telegram/DialogParticipant.cpp +++ b/td/telegram/DialogParticipant.cpp @@ -509,12 +509,12 @@ DialogParticipantStatus::DialogParticipantStatus(bool is_member, *this = DialogParticipantStatus(Type::Restricted, flags, until_date, string()); } -RestrictedRights DialogParticipantStatus::get_effective_restricted_rights(ChannelType channel_type) const { +RestrictedRights DialogParticipantStatus::get_effective_restricted_rights() const { return RestrictedRights(can_send_messages(), can_send_audios(), can_send_documents(), can_send_photos(), can_send_videos(), can_send_video_notes(), can_send_voice_notes(), can_send_stickers(), can_send_animations(), can_send_games(), can_use_inline_bots(), can_add_web_page_previews(), can_send_polls(), can_change_info_and_settings(), can_invite_users(), can_pin_messages(), - can_create_topics(), channel_type); + can_create_topics(), ChannelType::Unknown); } tl_object_ptr<td_api::ChatMemberStatus> DialogParticipantStatus::get_chat_member_status_object() const { |
