From 5f4ad30d03efaa3f0a1203e9964bac0bdf7f4ef0 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Tue, 7 Feb 2023 14:43:28 +0100 Subject: [PATCH] don't block if it does happen that we have processed a message too early allow dequeueing if the first seq in the queue is actually lower than what we already processed. Normally should not happen, but the bug fixed in the previous commit was aggravated by this behavior, so be more lenient here. --- src/matrix/calls/group/Member.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/calls/group/Member.ts b/src/matrix/calls/group/Member.ts index fe6e40a4..81b1dc7d 100644 --- a/src/matrix/calls/group/Member.ts +++ b/src/matrix/calls/group/Member.ts @@ -92,8 +92,7 @@ class MemberConnection { // are present in the queue // XXX: Not needed anymore when seq is scoped to call_id // see https://github.com/matrix-org/matrix-spec-proposals/pull/3401#discussion_r1097482166 - return firstSeq === this.lastProcessedSeqNr || - firstSeq === this.lastProcessedSeqNr + 1; + return firstSeq <= (this.lastProcessedSeqNr + 1); } dispose() {