You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -184,7 +184,7 @@ function setExpirationStartTimestamp(
184
184
if(timestamp){
185
185
if(!isValidUnixTimestamp(timestamp)){
186
186
window.log.debug(
187
-
`[setExpirationStartTimestamp] We compared 2 timestamps for a disappearing message (${mode}) and the argument timestamp is not a invalid unix timestamp.${
187
+
`[setExpirationStartTimestamp] We compared 2 timestamps for a disappearing message (${mode}) and the argument timestamp is an invalid unix timestamp.${
188
188
messageId ? `messageId: ${messageId} ` : ''
189
189
}`
190
190
);
@@ -361,7 +361,15 @@ async function checkForExpireUpdateInContentMessage(
361
361
/**
362
362
* Checks if an outgoing message is meant to disappear and if so trigger the timer
`incoming DaS message,\n\tforcing expirationStartTimestamp to ${expirationStartTimestamp} which is ${(Date.now()-expirationStartTimestamp)/1000}s ago,\n\tand expires_at to ${expires_at} so with ${(messageExpirationFromRetrieve-Date.now())/1000}s left`
// TODO: the expiration is due to be returned by the storage server on "store" soon, we will then be able to use it instead of doing the storedAt + ttl logic below
@@ -682,7 +682,7 @@ async function handleBatchResultWithSubRequests({
682
682
subRequestStatusCode===200&&
683
683
!isEmpty(storedHash)&&
684
684
isString(storedHash)&&
685
-
isNumber(storedAt)
685
+
isNumber(storedAtMs)
686
686
){
687
687
seenHashes.push({
688
688
expiresAt: NetworkTime.now()+TTL_DEFAULT.CONTENT_MESSAGE,// non config msg expire at CONTENT_MESSAGE at most
@@ -694,19 +694,18 @@ async function handleBatchResultWithSubRequests({
694
694
// For groups, we can just store that hash directly as the group's swarm is hosting all of the group messages
0 commit comments