diff --git a/TelegramUI/GroupInfoController.swift b/TelegramUI/GroupInfoController.swift index 0b3ba888de..65310c321b 100644 --- a/TelegramUI/GroupInfoController.swift +++ b/TelegramUI/GroupInfoController.swift @@ -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 + } } } diff --git a/TelegramUI/PrivacyAndSecurityController.swift b/TelegramUI/PrivacyAndSecurityController.swift index 4b58373c59..9c936aa5d6 100644 --- a/TelegramUI/PrivacyAndSecurityController.swift +++ b/TelegramUI/PrivacyAndSecurityController.swift @@ -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))