Fix basic group administrator rights.

This commit is contained in:
levlam 2020-12-14 22:30:58 +03:00
parent 4b9eabc668
commit 47a00d257b
2 changed files with 5 additions and 1 deletions

View File

@ -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>

View File

@ -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) {