Use newly added addParticipants instead of calling multiple times addParticipant

This commit is contained in:
Andrea Gianarda 2021-06-02 16:19:52 +02:00 committed by Sylvain Berfini
parent 87e1ae3500
commit bce660fbdd

View file

@ -369,9 +369,7 @@ class ControlsViewModel : ViewModel() {
Log.i("[Call] Setting videoEnabled to [$currentCallVideoEnabled] in conference params")
val conference = core.conference ?: core.createConferenceWithParams(params)
for (call in core.calls) {
conference?.addParticipant(call)
}
conference?.addParticipants(core.calls)
toggleOptionsMenu()
}