mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
opt: rename to on_voice_call_started
This commit is contained in:
parent
040396b3f8
commit
ea391542fc
@ -1259,7 +1259,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
} else {
|
||||
if response.accepted {
|
||||
// The peer accepts the voice call.
|
||||
self.handler.on_voice_call_start();
|
||||
self.handler.on_voice_call_started();
|
||||
self.stop_voice_call_sender = self.start_voice_call();
|
||||
} else {
|
||||
// The peer refused the voice call.
|
||||
|
@ -395,8 +395,8 @@ impl InvokeUiSession for FlutterHandler {
|
||||
self.push_event("switch_back", [("peer_id", peer_id)].into());
|
||||
}
|
||||
|
||||
fn on_voice_call_start(&self) {
|
||||
self.push_event("on_voice_call_start", [].into());
|
||||
fn on_voice_call_started(&self) {
|
||||
self.push_event("on_voice_call_started", [].into());
|
||||
}
|
||||
|
||||
fn on_voice_call_closed(&self, reason: &str) {
|
||||
|
@ -267,7 +267,7 @@ impl InvokeUiSession for SciterHandler {
|
||||
|
||||
fn switch_back(&self, _id: &str) {}
|
||||
|
||||
fn on_voice_call_start(&self) {
|
||||
fn on_voice_call_started(&self) {
|
||||
self.call("onVoiceCallStart", &make_args!());
|
||||
}
|
||||
|
||||
|
@ -705,7 +705,7 @@ pub trait InvokeUiSession: Send + Sync + Clone + 'static + Sized + Default {
|
||||
fn clipboard(&self, content: String);
|
||||
fn cancel_msgbox(&self, tag: &str);
|
||||
fn switch_back(&self, id: &str);
|
||||
fn on_voice_call_start(&self);
|
||||
fn on_voice_call_started(&self);
|
||||
fn on_voice_call_closed(&self, reason: &str);
|
||||
fn on_voice_call_waiting(&self);
|
||||
fn on_voice_call_incoming(&self);
|
||||
|
Loading…
Reference in New Issue
Block a user