Commit b33c3bad authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

conference: update calls

Update calls when conference changed

Change-Id: I4700fbbd8c880ee8084d5e0550d64dc8a3aba5d5
parent 565cac49
......@@ -571,6 +571,15 @@ class CallsService: CallsAdapterDelegate {
}
func conferenceChanged(conference conferenceID: String, state: String) {
guard let conference = self.call(callID: conferenceID) else {return}
let conferenceCalls = Set(self.callsAdapter
.getConferenceCalls(conferenceID))
conference.participantsCallId = conferenceCalls
conferenceCalls.forEach { (callId) in
guard let call = self.call(callID: callId) else { return }
call.participantsCallId = conferenceCalls
self.calls.value[callId] = call
}
}
func conferenceRemoved(conference conferenceID: String) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment