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.
This commit is contained in:
Bruno Windels 2023-02-07 14:43:28 +01:00
parent 39e9a43a1b
commit 5f4ad30d03

View File

@ -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() {