diff --git a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/LiveLocationSharingViewerViewModel.swift b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/LiveLocationSharingViewerViewModel.swift index 7776f43f3..c34be9bdb 100644 --- a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/LiveLocationSharingViewerViewModel.swift +++ b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/LiveLocationSharingViewerViewModel.swift @@ -82,7 +82,7 @@ class LiveLocationSharingViewerViewModel: LiveLocationSharingViewerViewModelType liveLocationSharingViewerService.didUpdateUsersLiveLocation = { [weak self] liveLocations in self?.update(with: liveLocations, highlightFirstLocation: false) } - self.liveLocationSharingViewerService.startListenningLiveLocationUpdates() + self.liveLocationSharingViewerService.startListeningLiveLocationUpdates() } private func updateUsersLiveLocation(highlightFirstLocation: Bool) { diff --git a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/MatrixSDK/LiveLocationSharingViewerService.swift b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/MatrixSDK/LiveLocationSharingViewerService.swift index 013d256ba..085b88bc0 100644 --- a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/MatrixSDK/LiveLocationSharingViewerService.swift +++ b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/MatrixSDK/LiveLocationSharingViewerService.swift @@ -50,14 +50,14 @@ class LiveLocationSharingViewerService: LiveLocationSharingViewerServiceProtocol return self.session.myUserId == userId } - func startListenningLiveLocationUpdates() { - self.beaconInfoSummaryListener = self.session.aggregations.beaconAggegations.listenToBeaconInfoSummaryUpdateInRoom(withId: self.roomId) { [weak self] _ in + func startListeningLiveLocationUpdates() { + self.beaconInfoSummaryListener = self.session.aggregations.beaconAggregations.listenToBeaconInfoSummaryUpdateInRoom(withId: self.roomId) { [weak self] _ in self?.updateUsersLiveLocation(notifyUpdate: true) } } - func stopListenningLiveLocationUpdates() { + func stopListeningLiveLocationUpdates() { if let listener = beaconInfoSummaryListener { self.session.aggregations.removeListener(listener) } diff --git a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/Mock/MockLiveLocationSharingViewerService.swift b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/Mock/MockLiveLocationSharingViewerService.swift index f2635ac77..d941ddfdc 100644 --- a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/Mock/MockLiveLocationSharingViewerService.swift +++ b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/Mock/MockLiveLocationSharingViewerService.swift @@ -54,11 +54,11 @@ class MockLiveLocationSharingViewerService: LiveLocationSharingViewerServiceProt return "@alice:matrix.org" == userId } - func startListenningLiveLocationUpdates() { + func startListeningLiveLocationUpdates() { } - func stopListenningLiveLocationUpdates() { + func stopListeningLiveLocationUpdates() { }