From ca97065eb62af45504110c079bb70fbf1b6ba049 Mon Sep 17 00:00:00 2001 From: unglazed <130832733+unglazed@users.noreply.github.com> Date: Tue, 18 Apr 2023 14:41:17 +0300 Subject: [PATCH] add password handling in uni links handler Signed-off-by: unglazed <130832733+unglazed@users.noreply.github.com> --- flutter/lib/common.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index daffe261f..e91b8fcd2 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -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; }