opt.: icloud sync (#187)

This commit is contained in:
lollipopkit
2023-12-04 10:44:51 +08:00
parent 5035fdce86
commit 3524d92013
9 changed files with 73 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ class PrivateKeyStore extends PersistentStore {
final ps = <PrivateKeyInfo>[];
for (final key in keys) {
final s = box.get(key);
if (s != null) {
if (s != null && s is PrivateKeyInfo) {
ps.add(s);
}
}

View File

@@ -13,7 +13,7 @@ class ServerStore extends PersistentStore {
final List<ServerPrivateInfo> ss = [];
for (final id in ids) {
final s = box.get(id);
if (s != null) {
if (s != null && s is ServerPrivateInfo) {
ss.add(s);
}
}

View File

@@ -13,7 +13,7 @@ class SnippetStore extends PersistentStore {
final ss = <Snippet>[];
for (final key in keys) {
final s = box.get(key);
if (s != null) {
if (s != null && s is Snippet) {
ss.add(s);
}
}