Fix basic group administrator rights.
This commit is contained in:
parent
4b9eabc668
commit
47a00d257b
@ -3475,6 +3475,10 @@ void ContactsManager::Chat::parse(ParserT &parser) {
|
||||
if (has_cache_version) {
|
||||
parse(cache_version, parser);
|
||||
}
|
||||
|
||||
if (status.is_administrator() && !status.is_creator()) {
|
||||
status = DialogParticipantStatus::GroupAdministrator(false);
|
||||
}
|
||||
}
|
||||
|
||||
template <class StorerT>
|
||||
|
@ -92,7 +92,7 @@ DialogParticipantStatus DialogParticipantStatus::Banned(int32 banned_until_date)
|
||||
}
|
||||
|
||||
DialogParticipantStatus DialogParticipantStatus::GroupAdministrator(bool is_creator) {
|
||||
return Administrator(false, string(), is_creator, true, false, false, true, true, true, true, false, false);
|
||||
return Administrator(false, string(), is_creator, true, false, false, true, true, true, true, false, true);
|
||||
}
|
||||
|
||||
DialogParticipantStatus DialogParticipantStatus::ChannelAdministrator(bool is_creator, bool is_megagroup) {
|
||||
|
Loading…
Reference in New Issue
Block a user