mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 11:11:04 +03:00
no password required for file transfer action in remote control menu (#9731)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -121,6 +121,7 @@ pub fn session_add_sync(
|
||||
force_relay: bool,
|
||||
password: String,
|
||||
is_shared_password: bool,
|
||||
conn_token: Option<String>,
|
||||
) -> SyncReturn<String> {
|
||||
if let Err(e) = session_add(
|
||||
&session_id,
|
||||
@@ -132,6 +133,7 @@ pub fn session_add_sync(
|
||||
force_relay,
|
||||
password,
|
||||
is_shared_password,
|
||||
conn_token,
|
||||
) {
|
||||
SyncReturn(format!("Failed to add session with id {}, {}", &id, e))
|
||||
} else {
|
||||
@@ -1341,6 +1343,14 @@ pub fn session_close_voice_call(session_id: SessionID) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn session_get_conn_token(session_id: SessionID) -> SyncReturn<Option<String>> {
|
||||
if let Some(session) = sessions::get_session_by_session_id(&session_id) {
|
||||
SyncReturn(session.get_conn_token())
|
||||
} else {
|
||||
SyncReturn(None)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cm_handle_incoming_voice_call(id: i32, accept: bool) {
|
||||
crate::ui_cm_interface::handle_incoming_voice_call(id, accept);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user