Fix icons

This commit is contained in:
Peter 2019-05-20 19:01:43 +02:00
parent bcbbe88854
commit 94dcc9152c
2 changed files with 5 additions and 3 deletions

View File

@ -1479,7 +1479,9 @@ public func groupInfoController(context: AccountContext, peerId originalPeerId:
}
} else if let channel = groupPeer as? TelegramChannel {
if channel.hasPermission(.inviteMembers) {
canCreateInviteLink = true
if channel.adminRights != nil {
canCreateInviteLink = true
}
}
}

View File

@ -348,9 +348,9 @@ private func privacyAndSecurityControllerEntries(presentationData: PresentationD
if let biometricAuthentication = LocalAuth.biometricAuthentication {
switch biometricAuthentication {
case .touchId:
entries.append(.passcode(presentationData.theme, presentationData.strings.PrivacySettings_PasscodeAndTouchId, true))
entries.append(.passcode(presentationData.theme, presentationData.strings.PrivacySettings_PasscodeAndTouchId, false))
case .faceId:
entries.append(.passcode(presentationData.theme, presentationData.strings.PrivacySettings_PasscodeAndFaceId, false))
entries.append(.passcode(presentationData.theme, presentationData.strings.PrivacySettings_PasscodeAndFaceId, true))
}
} else {
entries.append(.passcode(presentationData.theme, presentationData.strings.PrivacySettings_Passcode, false))