mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Member should be expired if there's no expires at key
This commit is contained in:
parent
9d82074cf8
commit
e9b8cfbd9e
@ -416,5 +416,5 @@ export function memberExpiresAt(callDeviceMembership: CallDeviceMembership): num
|
||||
|
||||
export function isMemberExpired(callDeviceMembership: CallDeviceMembership, now: number, margin: number = 0) {
|
||||
const expiresAt = memberExpiresAt(callDeviceMembership);
|
||||
return typeof expiresAt === "number" && ((expiresAt + margin) <= now);
|
||||
return typeof expiresAt === "number" ? ((expiresAt + margin) <= now) : true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user