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,9 +1479,11 @@ public func groupInfoController(context: AccountContext, peerId originalPeerId:
} }
} else if let channel = groupPeer as? TelegramChannel { } else if let channel = groupPeer as? TelegramChannel {
if channel.hasPermission(.inviteMembers) { if channel.hasPermission(.inviteMembers) {
if channel.adminRights != nil {
canCreateInviteLink = true canCreateInviteLink = true
} }
} }
}
if canCreateInviteLink { if canCreateInviteLink {
options.append(ContactListAdditionalOption(title: presentationData.strings.GroupInfo_InviteByLink, icon: .generic(UIImage(bundleImageName: "Contact List/LinkActionIcon")!), action: { options.append(ContactListAdditionalOption(title: presentationData.strings.GroupInfo_InviteByLink, icon: .generic(UIImage(bundleImageName: "Contact List/LinkActionIcon")!), action: {

View File

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