Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix broadcast last sequence number #9858

Merged
merged 3 commits into from
Jan 9, 2023

Conversation

weeman1337
Copy link
Contributor

@weeman1337 weeman1337 commented Jan 4, 2023

Currently the sequence number is initialised with 1 and incremented after sending an event. This leads to wrong info events, sending the current sequence number always 1 ahead.

Fix should be initialisation with 0 and increment just before sending the next event.

closes element-hq/element-web#24155

PSF-1835

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

@weeman1337 weeman1337 added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jan 4, 2023
@weeman1337 weeman1337 force-pushed the weeman1337/fix-broadcast-last-sequence branch from 3dcf645 to eda9a19 Compare January 5, 2023 08:21
@weeman1337 weeman1337 marked this pull request as ready for review January 5, 2023 15:12
@weeman1337 weeman1337 requested a review from a team as a code owner January 5, 2023 15:12
@weeman1337 weeman1337 enabled auto-merge (squash) January 9, 2023 16:36
@weeman1337 weeman1337 merged commit 4f0a5d1 into develop Jan 9, 2023
@weeman1337 weeman1337 deleted the weeman1337/fix-broadcast-last-sequence branch January 9, 2023 17:18
andybalaam pushed a commit to andybalaam/matrix-react-sdk that referenced this pull request Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong "last_chunk_sequence" in the Voice Broadcast stopped event
2 participants