Skip to content

Commit f2a612c

Browse files
committed
add voice_call start_pa
1 parent 4a648f0 commit f2a612c

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

flutter/lib/models/native_model.dart

-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ class PlatformFFI {
136136
// Start a dbus service for uri links, no need to await
137137
_ffiBind.mainStartDbusServer();
138138
}
139-
if (appType == kAppTypeConnectionManager) {
140-
_ffiBind.mainStartPa();
141-
}
142139
} else if (isMacOS && isMain) {
143140
// Start ipc service for uri links.
144141
_ffiBind.mainStartIpcUrlServer();

flutter/lib/web/bridge.dart

-4
Original file line numberDiff line numberDiff line change
@@ -1412,10 +1412,6 @@ class RustdeskImpl {
14121412
return false;
14131413
}
14141414

1415-
Future<void> mainStartPa({dynamic hint}) {
1416-
throw UnimplementedError();
1417-
}
1418-
14191415
bool mainHideDocker({dynamic hint}) {
14201416
throw UnimplementedError();
14211417
}

src/flutter_ffi.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1839,11 +1839,6 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
18391839
SyncReturn(is_login_wayland())
18401840
}
18411841

1842-
pub fn main_start_pa() {
1843-
#[cfg(target_os = "linux")]
1844-
std::thread::spawn(crate::ipc::start_pa);
1845-
}
1846-
18471842
pub fn main_hide_docker() -> SyncReturn<bool> {
18481843
#[cfg(target_os = "macos")]
18491844
crate::platform::macos::hide_dock();

src/ui_session_interface.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,8 @@ impl<T: InvokeUiSession> Session<T> {
12681268

12691269
#[inline]
12701270
pub fn request_voice_call(&self) {
1271+
#[cfg(target_os = "linux")]
1272+
std::thread::spawn(crate::ipc::start_pa);
12711273
self.send(Data::NewVoiceCall);
12721274
}
12731275

0 commit comments

Comments
 (0)