add password handling in uni links handler

Signed-off-by: unglazed <130832733+unglazed@users.noreply.github.com>
This commit is contained in:
unglazed 2023-04-18 14:41:17 +03:00
parent 573417dc17
commit ca97065eb6

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;
}