handleSync method

Future<void> handleSync(
  1. SyncUpdate sync, {
  2. Direction? direction,
})

Use this method only for testing utilities!

Implementation

Future<void> handleSync(SyncUpdate sync, {Direction? direction}) async {
  // ensure we don't upload keys because someone forgot to set a key count
  sync.deviceOneTimeKeysCount ??= {'signed_curve25519': 100};
  await _handleSync(sync, direction: direction);
}