LiveLocationSharingViewerService: Fix typo.

This commit is contained in:
SBiOSoftWhare
2022-05-04 15:52:45 +02:00
parent e755c4f279
commit bc686fc6af
3 changed files with 6 additions and 6 deletions
@@ -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) {
@@ -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)
}
@@ -54,11 +54,11 @@ class MockLiveLocationSharingViewerService: LiveLocationSharingViewerServiceProt
return "@alice:matrix.org" == userId
}
func startListenningLiveLocationUpdates() {
func startListeningLiveLocationUpdates() {
}
func stopListenningLiveLocationUpdates() {
func stopListeningLiveLocationUpdates() {
}