mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
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:
parent
39e9a43a1b
commit
5f4ad30d03
@ -92,8 +92,7 @@ class MemberConnection {
|
|||||||
// are present in the queue
|
// are present in the queue
|
||||||
// XXX: Not needed anymore when seq is scoped to call_id
|
// XXX: Not needed anymore when seq is scoped to call_id
|
||||||
// see https://github.com/matrix-org/matrix-spec-proposals/pull/3401#discussion_r1097482166
|
// see https://github.com/matrix-org/matrix-spec-proposals/pull/3401#discussion_r1097482166
|
||||||
return firstSeq === this.lastProcessedSeqNr ||
|
return firstSeq <= (this.lastProcessedSeqNr + 1);
|
||||||
firstSeq === this.lastProcessedSeqNr + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user