Skip to content

Commit

Permalink
Merge branch 'rustdesk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Oct 8, 2024
2 parents 392ee56 + 507de62 commit e652cf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flutter/lib/web/bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ class RustdeskImpl {
required String code,
required bool trustThisDevice,
dynamic hint}) {
return Future(() => js.context.callMethod('setByName', ['send_2fa', code]));
return Future(() => js.context.callMethod('setByName', [
'send_2fa',
jsonEncode({'code': code, 'trust_this_device': trustThisDevice})
]));
}

Future<void> sessionClose({required UuidValue sessionId, dynamic hint}) {
Expand Down Expand Up @@ -1682,7 +1685,8 @@ class RustdeskImpl {

bool sessionGetEnableTrustedDevices(
{required UuidValue sessionId, dynamic hint}) {
throw UnimplementedError();
return js.context.callMethod('getByName', ['enable_trusted_devices']) ==
'Y';
}

Future<String> mainGetTrustedDevices({dynamic hint}) {
Expand Down

0 comments on commit e652cf7

Please sign in to comment.