diff --git a/ts/services/profiles.ts b/ts/services/profiles.ts index 3326b8c7b8..931ae8a336 100644 --- a/ts/services/profiles.ts +++ b/ts/services/profiles.ts @@ -329,6 +329,7 @@ async function doGetProfile(c: ConversationModel): Promise { } if (error.code === 404) { + c.set('profileLastFetchedAt', Date.now()); await c.removeLastProfile(lastProfile); } @@ -344,6 +345,7 @@ async function doGetProfile(c: ConversationModel): Promise { if (error instanceof HTTPError && error.code === 404) { log.info(`getProfile: failed to find a profile for ${idForLogging}`); + c.set('profileLastFetchedAt', Date.now()); await c.removeLastProfile(lastProfile); if (!isVersioned) { log.info(`getProfile: marking ${idForLogging} as unregistered`);