mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 17:12:38 +01:00
Simplify loop to remove room args
This commit is contained in:
parent
81e14c7c3b
commit
519d43ceb7
@ -186,10 +186,9 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
|
|||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
private fun removeRoomArgs(roomId: String) {
|
private fun removeRoomArgs(roomId: String) {
|
||||||
val beaconIds = roomArgsMap
|
roomArgsMap
|
||||||
.filter { it.value.roomId == roomId }
|
.filter { it.value.roomId == roomId }
|
||||||
.map { it.key }
|
.forEach { roomArgsMap.remove(it.key) }
|
||||||
beaconIds.forEach { roomArgsMap.remove(it) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun listenForLiveSummaryChanges(roomId: String, eventId: String) {
|
private fun listenForLiveSummaryChanges(roomId: String, eventId: String) {
|
||||||
|
Loading…
Reference in New Issue
Block a user