Skip to content

Commit

Permalink
Update RiotSwiftUI/Modules/LocationSharing/StartLocationSharing/Coord…
Browse files Browse the repository at this point in the history
…inator/LocationSharingCoordinator.swift


Use local var `roomPowerLevels`

Co-authored-by: Doug <[email protected]>
  • Loading branch information
NicolasBuquet and pixlwave authored Jun 24, 2024
1 parent b44685c commit 68d069d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ final class LocationSharingCoordinator: Coordinator, Presentable {
}

// CHeck user power level in room against power level needed to post geolocation state event.
let liveSharingPowerLevel = parameters.roomDataSource.roomState.powerLevels.minimumPowerLevelForSendingStateEvent(.beaconInfo)
let liveSharingPowerLevel = roomPowerLevels.minimumPowerLevelForSendingStateEvent(.beaconInfo)

return userPowerLevel.rawValue >= liveSharingPowerLevel
}
Expand Down

0 comments on commit 68d069d

Please sign in to comment.