From 2daf2619743a7dd19946e1e81fab0360b56d7def Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 18 Oct 2022 12:56:58 -0700 Subject: [PATCH] Member should be expired if there's no expires at key --- src/matrix/calls/group/Member.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/calls/group/Member.ts b/src/matrix/calls/group/Member.ts index 253240ec..309aa0da 100644 --- a/src/matrix/calls/group/Member.ts +++ b/src/matrix/calls/group/Member.ts @@ -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; }