Renaming a variable to be more precise

This commit is contained in:
Maxime NATUREL 2022-06-15 14:51:28 +02:00
parent fc98057042
commit 6c0b7f7b43

View File

@ -91,12 +91,12 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
} }
private suspend fun sendStartingLiveBeaconInfo(session: Session, roomArgs: RoomArgs) { private suspend fun sendStartingLiveBeaconInfo(session: Session, roomArgs: RoomArgs) {
val beaconEventId = session val updateLiveResult = session
.getRoom(roomArgs.roomId) .getRoom(roomArgs.roomId)
?.locationSharingService() ?.locationSharingService()
?.startLiveLocationShare(timeoutMillis = roomArgs.durationMillis) ?.startLiveLocationShare(timeoutMillis = roomArgs.durationMillis)
beaconEventId updateLiveResult
?.let { result -> ?.let { result ->
when (result) { when (result) {
is UpdateLiveLocationShareResult.Success -> { is UpdateLiveLocationShareResult.Success -> {