Support admins with empty rights

This commit is contained in:
Ali
2021-02-18 17:11:01 +04:00
parent 8f2ed45b25
commit 7b1377f121
29 changed files with 4667 additions and 4534 deletions

View File

@@ -242,7 +242,7 @@ func inputTextPanelStateForChatPresentationInterfaceState(_ chatPresentationInte
if case .creator = group.role {
canSetupAutoremoveTimeout = true
} else if case let .admin(rights, _) = group.role {
if rights.flags.contains(.canDeleteMessages) {
if rights.rights.contains(.canDeleteMessages) {
canSetupAutoremoveTimeout = true
}
}