Skip to content

Commit

Permalink
Fix ab merge and sync from recent (rustdesk#6910)
Browse files Browse the repository at this point in the history
* fix missing platform when merge ab

Signed-off-by: 21pages <[email protected]>

* sync from recent after ab initialized

Signed-off-by: 21pages <[email protected]>

---------

Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Jan 17, 2024
1 parent 58fd878 commit 6548f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flutter/lib/models/ab_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class AbModel {
Timer.periodic(Duration(milliseconds: 500), (timer) async {
if (_timerCounter++ % 6 == 0) {
if (!gFFI.userModel.isLogin) return;
if (!initialized) return;
syncFromRecent();
}
});
Expand Down Expand Up @@ -378,6 +379,7 @@ class AbModel {
p.hash = r.hash.isEmpty ? p.hash : r.hash;
p.username = r.username.isEmpty ? p.username : r.username;
p.hostname = r.hostname.isEmpty ? p.hostname : r.hostname;
p.platform = r.platform.isEmpty ? p.platform : r.platform;
p.alias = p.alias.isEmpty ? r.alias : p.alias;
p.forceAlwaysRelay = r.forceAlwaysRelay;
p.rdpPort = r.rdpPort;
Expand Down

0 comments on commit 6548f9f

Please sign in to comment.