Fix conference pausing on remote when pausing locally

This commit is contained in:
Christophe Deschamps 2022-04-15 11:40:37 +02:00
parent 5f7b4f3bcd
commit 0ceb1f9043

View file

@ -86,12 +86,16 @@ class ConferenceViewModel {
}
},
onParticipantDeviceLeft: { (conference: Conference, device: ParticipantDevice) in
Log.i("[Conference] onParticipantDeviceJoined Entered conference")
self.isConferenceLocallyPaused.value = true
if (conference.isMe(uri: device.address!)) {
Log.i("[Conference] Left conference")
self.isConferenceLocallyPaused.value = true
}
},
onParticipantDeviceJoined: { (conference: Conference, device: ParticipantDevice) in
Log.i("[Conference] onParticipantDeviceJoined Entered conference")
self.isConferenceLocallyPaused.value = false
if (conference.isMe(uri: device.address!)) {
Log.i("[Conference] Joined conference")
self.isConferenceLocallyPaused.value = false
}
},
onStateChanged: { (conference: Conference, state: Conference.State) in
Log.i("[Conference] State changed: \(state)")