update strings and add modals

pull/1061/head
Ryan ZHAO 2 weeks ago
parent 0321a5026c
commit 02e22eb024

@ -746,7 +746,7 @@ final class CallVC: UIViewController, VideoPreviewDelegate, AVRoutePickerViewDel
let confirmationModal: ConfirmationModal = ConfirmationModal(
info: ConfirmationModal.Info(
title: "permissionsRequired".localized(),
body: .text("Camera access is required to make video calls. Toggle the \"Camera\" permission in Settings to continue."),
body: .text("permissionsCameraAccessRequiredCallsIos".localized()),
showCondition: .disabled,
confirmTitle: "sessionSettings".localized(),
onConfirm: { _ in

@ -165,9 +165,24 @@ class PrivacySettingsViewModel: SessionTableViewModel, NavigationItemSource, Nav
accessibility: Accessibility(
label: "Grant microphone permission"
),
onTap: {
UIApplication.shared.openSystemSettings()
}
confirmationInfo: ConfirmationModal.Info(
title: (
current.localNetworkPermission ?
"permissionChange".localized() :
"permissionsRequired".localized()
),
body: .text(
(
current.localNetworkPermission ?
"permissionsMicrophoneChangeDescriptionIos".localized() :
"permissionsMicrophoneAccessRequiredCallsIos".localized()
)
),
confirmTitle: "sessionSettings".localized(),
onConfirm: { _ in
UIApplication.shared.openSystemSettings()
}
)
),
SessionCell.Info(
id: .camera,
@ -183,9 +198,24 @@ class PrivacySettingsViewModel: SessionTableViewModel, NavigationItemSource, Nav
accessibility: Accessibility(
label: "Grant camera permission"
),
onTap: {
UIApplication.shared.openSystemSettings()
}
confirmationInfo: ConfirmationModal.Info(
title: (
current.localNetworkPermission ?
"permissionChange".localized() :
"permissionsRequired".localized()
),
body: .text(
(
current.localNetworkPermission ?
"permissionsCameraChangeDescriptionIos".localized() :
"permissionsCameraAccessRequiredCallsIos".localized()
)
),
confirmTitle: "sessionSettings".localized(),
onConfirm: { _ in
UIApplication.shared.openSystemSettings()
}
)
),
SessionCell.Info(
id: .localNetwork,
@ -201,9 +231,24 @@ class PrivacySettingsViewModel: SessionTableViewModel, NavigationItemSource, Nav
accessibility: Accessibility(
label: "Grant local network permission"
),
onTap: {
UIApplication.shared.openSystemSettings()
}
confirmationInfo: ConfirmationModal.Info(
title: (
current.localNetworkPermission ?
"permissionChange".localized() :
"permissionsRequired".localized()
),
body: .text(
(
current.localNetworkPermission ?
"permissionsLocalNetworkChangeDescriptionIos".localized() :
"permissionsLocalNetworkAccessRequiredCallsIos".localized()
)
),
confirmTitle: "sessionSettings".localized(),
onConfirm: { _ in
UIApplication.shared.openSystemSettings()
}
)
)
]
)

Loading…
Cancel
Save