@rdlabo/ionic-angular-kit 21.6.6 → 21.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4070,8 +4070,11 @@ class OfflineSyncService {
4070
4070
  }
4071
4071
  }
4072
4072
  async #readKnownCommands() {
4073
- const commands = (await Promise.all([...this.#knownScopes.values()].map((scope) => this.#repository.getCommands(scope))))
4074
- .flat()
4073
+ const userId = this.#activeUserId;
4074
+ if (userId === null)
4075
+ return [];
4076
+ const commands = (await this.#commandsForUser(userId))
4077
+ .filter((command) => this.#knownScopes.has(this.#scopeKey({ userId: command.userId, scopeId: command.scopeId })))
4075
4078
  .sort(compareOfflineCommands);
4076
4079
  this.#rememberCreatedAt(commands);
4077
4080
  return commands;