diff --git a/ts/receiver/configMessage.ts b/ts/receiver/configMessage.ts index 53e82fba1..f7fc30684 100644 --- a/ts/receiver/configMessage.ts +++ b/ts/receiver/configMessage.ts @@ -228,26 +228,26 @@ async function handleUserProfileUpdate(result: IncomingConfResult): Promise 0 - ? 'deleteAfterSend' - : 'off' - ); + await ourConvo.updateExpireTimer({ + providedExpirationType: + wrapperNoteToSelfExpirySeconds && wrapperNoteToSelfExpirySeconds > 0 + ? 'deleteAfterSend' + : 'off', + providedExpireTimer: wrapperNoteToSelfExpirySeconds, + providedChangeTimestamp: result.latestEnvelopeTimestamp, + providedSource: ourConvo.id, + receivedAt: result.latestEnvelopeTimestamp, + fromSync: true, + shouldCommit: false, + }); changes = true; window.log.debug( - `WIP: [userProfileWrapper] updating disappearing messages to`, - wrapperNoteToSelfExpirySeconds && wrapperNoteToSelfExpirySeconds > 0 - ? 'deleteAfterSend' - : 'off', - ' ', - wrapperNoteToSelfExpirySeconds + `WIP: [userProfileWrapper] updating disappearing messages to expiratonMode: ${ + wrapperNoteToSelfExpirySeconds && wrapperNoteToSelfExpirySeconds > 0 + ? 'deleteAfterSend' + : 'off' + } wrapperNoteToSelfExpirySeconds: ${wrapperNoteToSelfExpirySeconds}` ); } @@ -395,6 +395,9 @@ async function handleContactsUpdate(result: IncomingConfResult): Promise