Various fixes

This commit is contained in:
Ilya Laktyushin
2023-01-19 15:34:36 +04:00
parent 96579d1c80
commit 3f13dea5da
10 changed files with 192 additions and 106 deletions

View File

@@ -1148,6 +1148,9 @@ private func stringForRequestPeerType(strings: PresentationStrings, peerType: Re
append(strings.RequestPeer_Requirement_Group_ForumOff)
}
}
if group.botParticipant {
append(strings.RequestPeer_Requirement_Group_ParticipantOn)
}
if let adminRights = group.userAdminRights, !group.isCreator {
var rights: [String] = []
if adminRights.rights.contains(.canChangeInfo) {