We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70449ea commit df9ffdcCopy full SHA for df9ffdc
src/webrtc/groupCall.ts
@@ -139,8 +139,7 @@ const callMemberStateIsExpired = (event: MatrixEvent): boolean => {
139
const now = Date.now();
140
const content = event?.getContent<IGroupCallRoomMemberState>() ?? {};
141
const expiresAt = typeof content["m.expires_ts"] === "number" ? content["m.expires_ts"] : -Infinity;
142
- // The event is expired if the expiration date has passed, or if it's unreasonably far in the future
143
- return expiresAt <= now || expiresAt > now + CALL_MEMBER_STATE_TIMEOUT * 5 / 4;
+ return expiresAt <= now;
144
};
145
146
function getCallUserId(call: MatrixCall): string | null {
0 commit comments