Skip to content

Commit 00a683c

Browse files
committed
tweak: some defensive code regarding syncing of 'local:' keys
1 parent 7ff8c96 commit 00a683c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/at_client/lib/src/util/sync_util.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ class SyncUtil {
5959
if (atCommitLog == null) {
6060
return [];
6161
}
62-
return atCommitLog!.getChanges(seqNum, regex);
62+
return (await atCommitLog!.getChanges(seqNum, regex))
63+
.where((commitEntry) => !commitEntry.atKey!.startsWith('local:'))
64+
.toList();
6365
}
6466

6567
//#TODO change return type to enum which says in sync, local ahead or server ahead

0 commit comments

Comments
 (0)