Change listeners Map variable to immutable

This commit is contained in:
Florian Renaud 2022-10-26 10:48:11 +02:00
parent 8fe3b5e750
commit 1554d79f1a

View file

@ -92,7 +92,7 @@ class VoiceBroadcastPlayer @Inject constructor(
/**
* Map voiceBroadcastId to listeners.
*/
private var listeners: MutableMap<String, CopyOnWriteArrayList<Listener>> = mutableMapOf()
private val listeners: MutableMap<String, CopyOnWriteArrayList<Listener>> = mutableMapOf()
fun playOrResume(roomId: String, eventId: String) {
val hasChanged = currentVoiceBroadcastId != eventId