Merge pull request #4097 from unglazed/feat-link-allow-password

add password handling in uni links handler
This commit is contained in:
RustDesk 2023-04-18 19:52:01 +08:00 committed by GitHub
commit 6bf0abe44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1599,8 +1599,9 @@ bool callUniLinksUriHandler(Uri uri) {
final peerId = uri.path.substring("/new/".length);
var param = uri.queryParameters;
String? switch_uuid = param["switch_uuid"];
String? password = param["password"];
Future.delayed(Duration.zero, () {
rustDeskWinManager.newRemoteDesktop(peerId, switch_uuid: switch_uuid);
rustDeskWinManager.newRemoteDesktop(peerId, password: password, switch_uuid: switch_uuid);
});
return true;
}