Support for new GroupV2 groups

This commit is contained in:
Scott Nonnenberg 2020-09-08 19:25:05 -07:00
parent 1ce0959fa1
commit 7a02cc815d
53 changed files with 7326 additions and 839 deletions

View file

@ -10,7 +10,7 @@ export async function deleteForEveryone(
// Make sure the server timestamps for the DOE and the matching message
// are less than one day apart
const delta = Math.abs(
doe.get('serverTimestamp') - message.get('serverTimestamp')
doe.get('serverTimestamp') - (message.get('serverTimestamp') || 0)
);
if (delta > ONE_DAY) {
window.log.info('Received late DOE. Dropping.', {