Skip to content

Commit d23f4c1

Browse files
committed
daily-python: keep eject_remote_participants with ids argument
1 parent c110261 commit d23f4c1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/call_client.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -522,23 +522,22 @@ impl PyCallClient {
522522

523523
/// Ejects remote participants.
524524
///
525-
/// :param List[str] participants: A list of IDs of remote participants to eject
525+
/// :param List[str] ids: A list of IDs of remote participants to eject
526526
/// :param Optional[func] completion: An optional completion callback with one parameter: (:ref:`CallClientError`)
527-
#[pyo3(signature = (participants, completion = None))]
527+
#[pyo3(signature = (ids, completion = None))]
528528
pub fn eject_remote_participants(
529529
&self,
530-
participants: PyObject,
530+
ids: PyObject,
531531
completion: Option<PyObject>,
532532
) -> PyResult<()> {
533533
// If we have already been released throw an exception.
534534
let mut call_client = self.check_released()?;
535535

536-
let participants: Vec<String> = Python::with_gil(|py| participants.extract(py).unwrap());
536+
let ids: Vec<String> = Python::with_gil(|py| ids.extract(py).unwrap());
537537

538-
let participants_string = serde_json::to_string(&participants).unwrap();
538+
let ids_string = serde_json::to_string(&ids).unwrap();
539539

540-
let participants_cstr =
541-
CString::new(participants_string).expect("invalid participant IDs string");
540+
let ids_cstr = CString::new(ids_string).expect("invalid participant IDs string");
542541

543542
let request_id =
544543
self.maybe_register_completion(completion.map(PyCallClientCompletion::UnaryFn));
@@ -547,7 +546,7 @@ impl PyCallClient {
547546
daily_core_call_client_eject_remote_participants(
548547
call_client.as_mut(),
549548
request_id,
550-
participants_cstr.as_ptr(),
549+
ids_cstr.as_ptr(),
551550
);
552551
}
553552

0 commit comments

Comments
 (0)