Skip to content

Commit

Permalink
feat: resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TungNguyen2a committed Dec 18, 2024
1 parent d6262a9 commit db6fb03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/core/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,22 +296,22 @@ class Agent {
this.agentServicesProps.signifyClient = this.signifyClient;
await this.connectSignifyClient();

await this.basicStorage.save({
id: MiscRecordId.CLOUD_RECOVERY_STATUS,
content: { syncing: true },
});

await SecureStorage.set(KeyStoreKeys.SIGNIFY_BRAN, bran);
await this.saveAgentUrls({
url: connectUrl,
bootUrl: "",
});
this.markAgentStatus(true);

await this.syncWithKeria();
}

async syncWithKeria() {
await this.basicStorage.save({
id: MiscRecordId.CLOUD_RECOVERY_STATUS,
content: { syncing: true },
});

this.markAgentStatus(true);
await this.connections.syncKeriaContacts();
await this.identifiers.syncKeriaIdentifiers();
await this.credentials.syncACDCs();
Expand Down
3 changes: 2 additions & 1 deletion src/ui/components/AppWrapper/AppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ const AppWrapper = (props: { children: ReactNode }) => {
MiscRecordId.CLOUD_RECOVERY_STATUS
);
if (recoveryStatus?.content?.syncing) {
Agent.agent.syncWithKeria();
await Agent.agent.syncWithKeria();
await loadDatabase()
}
}

Expand Down

0 comments on commit db6fb03

Please sign in to comment.