feat: fix missing update for private conversations

pull/2971/head
William Grant 2 years ago
parent deceae4119
commit b14d05e0b2

@ -380,18 +380,22 @@ async function handleContactsUpdate(result: IncomingConfResult): Promise<Incomin
await contactConvo.setDidApproveMe(Boolean(wrapperConvo.approvedMe), false); await contactConvo.setDidApproveMe(Boolean(wrapperConvo.approvedMe), false);
changes = true; changes = true;
} }
// FIXME Will unsure
// if (wrapperConvo.expirationTimerSeconds !== contactConvo.get('expireTimer')) { if (
// await contactConvo.updateExpireTimer({ wrapperConvo.expirationTimerSeconds !== contactConvo.get('expireTimer') ||
// providedExpireTimer: wrapperConvo.expirationTimerSeconds, wrapperConvo.expirationMode !== contactConvo.get('expirationType')
// fromSync: true, ) {
// providedExpirationType: wrapperConvo.expirationMode, await contactConvo.updateExpireTimer({
// shouldCommit: false, providedExpirationType: wrapperConvo.expirationMode || 'off',
// providedChangeTimestamp: result.latestEnvelopeTimestamp, providedExpireTimer: wrapperConvo.expirationTimerSeconds || 0,
// fromConfigMessage: true, providedChangeTimestamp: result.latestEnvelopeTimestamp,
// }); providedSource: wrapperConvo.id,
// changes = true; shouldCommit: false,
// } fromConfigMessage: true,
fromSync: true,
});
changes = true;
}
// we want to set the active_at to the created_at timestamp if active_at is unset, so that it shows up in our list. // we want to set the active_at to the created_at timestamp if active_at is unset, so that it shows up in our list.
if (!contactConvo.get('active_at') && wrapperConvo.createdAtSeconds) { if (!contactConvo.get('active_at') && wrapperConvo.createdAtSeconds) {

Loading…
Cancel
Save