mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Simplify loop to remove room args
This commit is contained in:
parent
81e14c7c3b
commit
519d43ceb7
1 changed files with 2 additions and 3 deletions
|
@ -186,10 +186,9 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
|
|||
|
||||
@Synchronized
|
||||
private fun removeRoomArgs(roomId: String) {
|
||||
val beaconIds = roomArgsMap
|
||||
roomArgsMap
|
||||
.filter { it.value.roomId == roomId }
|
||||
.map { it.key }
|
||||
beaconIds.forEach { roomArgsMap.remove(it) }
|
||||
.forEach { roomArgsMap.remove(it.key) }
|
||||
}
|
||||
|
||||
private fun listenForLiveSummaryChanges(roomId: String, eventId: String) {
|
||||
|
|
Loading…
Reference in a new issue