Fix new rights in created chats.
This commit is contained in:
parent
6af2f71ddd
commit
37f9d6a42d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user