mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Hide user dot and track own user marker in Live Location mode. (#5707)
* added a new tracking mode for following a marker and the logic for switching such tracking mode * implemented the follow marker tracking mode * improved and added new tests
This commit is contained in:
@@ -71,15 +71,6 @@ class LiveLocationManager: NSObject, LiveLocationManagerProtocol, CLLocationMana
|
||||
|
||||
// MARK: - LiveLocationManagerProtocol
|
||||
|
||||
var hasDisplayedLiveLocationDisclaimer: Bool {
|
||||
get {
|
||||
appSettings.liveLocationDisclaimerDisplayed
|
||||
}
|
||||
set {
|
||||
appSettings.liveLocationDisclaimerDisplayed = newValue
|
||||
}
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func requestAlwaysAuthorizationIfPossible() -> Bool {
|
||||
guard !appSettings.hasRequestedLocationAlwaysLocationAuthorization else { return false }
|
||||
|
||||
@@ -16,8 +16,6 @@ enum LiveLocationManagerError: Error {
|
||||
|
||||
// sourcery: AutoMockable
|
||||
protocol LiveLocationManagerProtocol: AnyObject {
|
||||
/// True if the live location disclaimer has been displayed already, will only be displayed once.
|
||||
var hasDisplayedLiveLocationDisclaimer: Bool { get set }
|
||||
/// Publishes the current location authorization status.
|
||||
var authorizationStatus: CurrentValuePublisher<CLAuthorizationStatus, Never> { get }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user