Skip to content

Commit 308509e

Browse files
Merge upstream develop
2 parents 9d22556 + 6a9e67e commit 308509e

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

apps/polycentric/app/profile/[identityId].tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/polycentric/src/common/components/layout/Topbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Topbar({ title, left, center, right }: TopbarProps) {
7878
identityKey
7979
? () =>
8080
router.push({
81-
pathname: '/profile/[identityId]',
81+
pathname: '/[identityId]',
8282
params: { identityId: identityKey },
8383
})
8484
: undefined

apps/polycentric/src/features/verifications/hooks/useCreateClaim.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ export default function useCreateClaim() {
7171
// Save the event locally and mirror it (with content) into the core.
7272
await client.commitEvent(signedEvent, content);
7373

74+
try {
75+
await client.sync(SyncStrategy.PARTIAL_PUSH);
76+
} catch (err) {
77+
console.error(err);
78+
}
79+
7480
// The same sync below delivers both events.
7581
if (requestFrom && event.key) {
7682
await publishVerificationTarget(client, event.key, requestFrom);

apps/polycentric/src/features/verifications/hooks/useRequestVerification.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export async function publishVerificationTarget(
3131
const event = await client.buildEvent(content, COLLECTION.VERIFICATIONS);
3232
const signedEvent = await client.signEvent(event);
3333
await client.commitEvent(signedEvent, content);
34+
try {
35+
await client.sync(SyncStrategy.PARTIAL_PUSH);
36+
} catch (err) {
37+
console.error(err);
38+
}
3439
}
3540

3641
// Request verification of an existing claim from a specific identity.

0 commit comments

Comments
 (0)