mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -198,7 +198,7 @@ class LiveLocationManager: NSObject, LiveLocationManagerProtocol, CLLocationMana
|
||||
.sink { [weak self] sessions in
|
||||
guard let self else { return }
|
||||
syncActiveRoomProxies(with: sessions)
|
||||
|
||||
|
||||
if sessions.isEmpty {
|
||||
self.stopUpdatingLocation()
|
||||
} else {
|
||||
|
||||
@@ -20,7 +20,7 @@ protocol LiveLocationManagerProtocol: AnyObject {
|
||||
var hasDisplayedLiveLocationDisclaimer: Bool { get set }
|
||||
/// Publishes the current location authorization status.
|
||||
var authorizationStatus: CurrentValuePublisher<CLAuthorizationStatus, Never> { get }
|
||||
|
||||
|
||||
/// Requests "Always" location authorization from the user if the system allows it.
|
||||
///
|
||||
/// - Returns: `true` if the request was forwarded to the system and a prompt will be shown;
|
||||
|
||||
@@ -19,7 +19,7 @@ final class RoomLiveLocationService: RoomLiveLocationServiceProtocol {
|
||||
var liveLocationsPublisher: CurrentValuePublisher<[LiveLocationShare], Never> {
|
||||
liveLocationsSubject.asCurrentValuePublisher()
|
||||
}
|
||||
|
||||
|
||||
init(liveLocationsObserver: LiveLocationsObserver) {
|
||||
self.liveLocationsObserver = liveLocationsObserver
|
||||
observationToken = liveLocationsObserver
|
||||
|
||||
Reference in New Issue
Block a user