Secure list while sending the location.

This commit is contained in:
Onuray Sahin 2022-04-05 19:08:11 +03:00
parent dbb43fe046
commit e0d59efd86

View file

@ -144,7 +144,7 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
Timber.i("### LocationSharingService.onLocationUpdate. Uncertainty: ${locationData.uncertainty}")
// Emit location update to all rooms in which live location sharing is active
roomArgsList.forEach { roomArg ->
roomArgsList.toList().forEach { roomArg ->
sendLiveLocation(roomArg.roomId, locationData)
}
}