diff --git a/src/fetchEvents.ts b/src/fetchEvents.ts index b3b5f56..f45d9ee 100644 --- a/src/fetchEvents.ts +++ b/src/fetchEvents.ts @@ -306,6 +306,7 @@ export const getContactName = (pubkey: string): string => { }; export const publishEvent = async (event: Event): Promise => { + storeMyProfileEvent(event); const r = await publishEventToRelay( event, [ @@ -317,7 +318,6 @@ export const publishEvent = async (event: Event): Promise => { 'wss://relay.snort.social', ], ); - if (r) storeMyProfileEvent(event); return r; }; /**