mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Show alert if user has not beacon and beaconInfo permissions in the room.
This commit is contained in:
@@ -13,6 +13,7 @@ import MatrixRustSDK
|
||||
enum LocationSharingViewAlert: Hashable {
|
||||
case missingAuthorization
|
||||
case missingAlwaysAuthorization
|
||||
case missingLiveLocationSharingPermission
|
||||
case liveLocationDisclaimer
|
||||
case liveLocationDurationSelection
|
||||
case mapError(MapLibreError)
|
||||
@@ -213,6 +214,10 @@ extension AlertInfo where T == LocationSharingViewAlert {
|
||||
message: L10n.dialogPermissionLiveLocationDescriptionIos(InfoPlistReader.main.bundleDisplayName),
|
||||
primaryButton: primaryButton,
|
||||
secondaryButton: secondaryButton)
|
||||
case .missingLiveLocationSharingPermission:
|
||||
self.init(id: alertID,
|
||||
title: L10n.screenShareLocationLiveLocationMissingPermissions,
|
||||
primaryButton: primaryButton)
|
||||
case .liveLocationDisclaimer:
|
||||
self.init(id: alertID,
|
||||
title: L10n.screenShareLocationLiveLocationDisclaimerTitle,
|
||||
|
||||
Reference in New Issue
Block a user