Force set expirationStartTimestamp on story messages

This commit is contained in:
Josh Perez 2022-04-11 17:28:01 -04:00 committed by GitHub
parent 7f89f6162f
commit 9f7ee9ae79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 2 deletions

View file

@ -1814,7 +1814,9 @@ export default class MessageReceiver
}
const expireTimer = Math.min(
(envelope.serverTimestamp + durations.DAY - Date.now()) / 1000,
Math.floor(
(envelope.serverTimestamp + durations.DAY - Date.now()) / 1000
),
durations.DAY / 1000
);