Contact Sync: Consider undefined value as a disabled expire timer
This commit is contained in:
@@ -60,17 +60,13 @@ async function updateConversationFromContactSync(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// expireTimer isn't in Storage Service so we have to rely on contact sync.
|
// expireTimer isn't in Storage Service so we have to rely on contact sync.
|
||||||
const { expireTimer } = details;
|
await conversation.updateExpirationTimer(details.expireTimer, {
|
||||||
const isValidExpireTimer = typeof expireTimer === 'number';
|
source: window.ConversationController.getOurConversationId(),
|
||||||
if (isValidExpireTimer) {
|
receivedAt: receivedAtCounter,
|
||||||
await conversation.updateExpirationTimer(expireTimer, {
|
fromSync: true,
|
||||||
source: window.ConversationController.getOurConversationId(),
|
isInitialSync,
|
||||||
receivedAt: receivedAtCounter,
|
reason: 'contact sync',
|
||||||
fromSync: true,
|
});
|
||||||
isInitialSync,
|
|
||||||
reason: 'contact sync',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.Whisper.events.trigger('incrementProgress');
|
window.Whisper.events.trigger('incrementProgress');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user