fix ab sync judge

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-16 22:43:17 +08:00
parent 9ac4346850
commit 8e9f3e2b4d
2 changed files with 26 additions and 12 deletions

View File

@@ -101,6 +101,19 @@ class Peer {
rdpPort == other.rdpPort &&
rdpUsername == other.rdpUsername;
}
Peer.copy(Peer other)
: this(
id: other.id,
hash: other.hash,
username: other.username,
hostname: other.hostname,
platform: other.platform,
alias: other.alias,
tags: other.tags.toList(),
forceAlwaysRelay: other.forceAlwaysRelay,
rdpPort: other.rdpPort,
rdpUsername: other.rdpUsername);
}
enum UpdateEvent { online, load }