Fix new rights in created chats.

This commit is contained in:
levlam 2020-12-07 00:47:48 +03:00
parent 6af2f71ddd
commit 37f9d6a42d

View File

@ -354,6 +354,10 @@ class DialogParticipantStatus {
}
type_ = static_cast<Type>(stored_flags >> TYPE_SHIFT);
flags_ = stored_flags & ((1 << TYPE_SHIFT) - 1);
if (is_creator()) {
flags_ |= ALL_ADMINISTRATOR_RIGHTS | ALL_PERMISSION_RIGHTS;
}
}
friend bool operator==(const DialogParticipantStatus &lhs, const DialogParticipantStatus &rhs);