From 0b240298d30b9ae2b85ddd40073c77bf4bde7d50 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 28 Sep 2020 01:44:41 +0300 Subject: [PATCH] Always set can_be_edited to true in received from app statuses. GitOrigin-RevId: 41fd765dc31498106b7724082cbceca8d51ee264 --- td/telegram/DialogParticipant.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/DialogParticipant.cpp b/td/telegram/DialogParticipant.cpp index e37c42beb..e3c4fd9d7 100644 --- a/td/telegram/DialogParticipant.cpp +++ b/td/telegram/DialogParticipant.cpp @@ -394,9 +394,9 @@ DialogParticipantStatus get_dialog_participant_status(const tl_object_ptr(status.get()); return DialogParticipantStatus::Administrator( - st->is_anonymous_, st->custom_title_, st->can_be_edited_, st->can_change_info_, st->can_post_messages_, - st->can_edit_messages_, st->can_delete_messages_, st->can_invite_users_, st->can_restrict_members_, - st->can_pin_messages_, st->can_promote_members_); + st->is_anonymous_, st->custom_title_, true /*st->can_be_edited_*/, st->can_change_info_, + st->can_post_messages_, st->can_edit_messages_, st->can_delete_messages_, st->can_invite_users_, + st->can_restrict_members_, st->can_pin_messages_, st->can_promote_members_); } case td_api::chatMemberStatusMember::ID: return DialogParticipantStatus::Member();