Remove unused getExpiresAt function

This commit is contained in:
Evan Hahn 2021-07-30 14:54:34 -05:00 committed by GitHub
parent 68eac613d7
commit d0bf9f929b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -30,15 +30,3 @@ export function markRead(
return nextMessageAttributes;
}
export function getExpiresAt(
messageAttrs: Pick<
MessageAttributesType,
'expireTimer' | 'expirationStartTimestamp'
>
): number | undefined {
const { expireTimer, expirationStartTimestamp } = messageAttrs;
return expirationStartTimestamp && expireTimer
? expirationStartTimestamp + expireTimer * 1000
: undefined;
}