no password required for file transfer action in remote control menu (#9731)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-10-24 17:20:48 +08:00 committed by GitHub
parent 7a3e1fe648
commit 445e9ac285
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 222 additions and 52 deletions

View file

@ -1126,6 +1126,7 @@ pub fn session_add(
force_relay: bool,
password: String,
is_shared_password: bool,
conn_token: Option<String>,
) -> ResultType<FlutterSession> {
let conn_type = if is_file_transfer {
ConnType::FILE_TRANSFER
@ -1180,6 +1181,7 @@ pub fn session_add(
force_relay,
get_adapter_luid(),
shared_password,
conn_token,
);
let session = Arc::new(session.clone());