diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index b3ad37b6b..02f413d78 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -2153,6 +2153,10 @@ Tap the + to start adding people."; "location_sharing_live_timer_incoming" = "Live until %@"; "location_sharing_live_loading" = "Loading Live location..."; "location_sharing_live_error" = "Live location error"; +"location_sharing_live_timer_selector_title" = "Choose for how long others will see your accurate location."; +"location_sharing_live_timer_selector_short" = "for 15 minutes"; +"location_sharing_live_timer_selector_medium" = "for 1 hour"; +"location_sharing_live_timer_selector_long" = "for 8 hours"; // MARK: - MatrixKit diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index 98cddc8cb..d07c7c4f0 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -2807,6 +2807,22 @@ public class VectorL10n: NSObject { public static func locationSharingLiveTimerIncoming(_ p1: String) -> String { return VectorL10n.tr("Vector", "location_sharing_live_timer_incoming", p1) } + /// for 8 hours + public static var locationSharingLiveTimerSelectorLong: String { + return VectorL10n.tr("Vector", "location_sharing_live_timer_selector_long") + } + /// for 1 hour + public static var locationSharingLiveTimerSelectorMedium: String { + return VectorL10n.tr("Vector", "location_sharing_live_timer_selector_medium") + } + /// for 15 minutes + public static var locationSharingLiveTimerSelectorShort: String { + return VectorL10n.tr("Vector", "location_sharing_live_timer_selector_short") + } + /// Choose for how long others will see your accurate location. + public static var locationSharingLiveTimerSelectorTitle: String { + return VectorL10n.tr("Vector", "location_sharing_live_timer_selector_title") + } /// Location public static var locationSharingLiveViewerTitle: String { return VectorL10n.tr("Vector", "location_sharing_live_viewer_title") diff --git a/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingModels.swift b/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingModels.swift index b0d9340e2..09c8d8d77 100644 --- a/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingModels.swift +++ b/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingModels.swift @@ -30,7 +30,7 @@ enum LocationSharingViewAction { case share case sharePinLocation case goToUserLocation - case shareLiveLocation + case shareLiveLocation(timeout: TimeInterval) } enum LocationSharingViewModelResult { diff --git a/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingViewModel.swift b/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingViewModel.swift index e6a7f6226..db2186344 100644 --- a/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingViewModel.swift +++ b/RiotSwiftUI/Modules/Room/LocationSharing/LocationSharingViewModel.swift @@ -25,12 +25,6 @@ typealias LocationSharingViewModelType = StateStoreViewModel