mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Member should be expired if there's no expires at key
This commit is contained in:
parent
d66d9dbd5f
commit
2daf261974
@ -434,5 +434,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