Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't attempt to adjust for clock skews when calculating group call membership expiry #4340

Merged
merged 8 commits into from
Aug 15, 2024

Conversation

hughns
Copy link
Member

@hughns hughns commented Aug 7, 2024

This change proposes that we simplify the client side logic used to calculate when a MatrixRTC call membership has expired.

The current implementation attempts to adjust for differing clocks between the local client, remote clients, the local homeserver and federated/remote homeservers.

The proposed change simplifies the logic to assume that the participants are reasonably close with the local clock being: -infinity to +30mins skewed.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@hughns hughns requested a review from a team as a code owner August 7, 2024 14:48
@hughns hughns added the T-Task Tasks for the team like planning label Aug 7, 2024
@hughns hughns marked this pull request as draft August 7, 2024 16:33
@hughns
Copy link
Member Author

hughns commented Aug 7, 2024

Sorry for the spam, I meant to create this as draft in the first place.

@hughns hughns changed the title Use origin server timestamp for calculating group call membership expiry Don't attempt to adjust for clock skews when calculating group call membership expiry Aug 9, 2024
@hughns hughns marked this pull request as ready for review August 9, 2024 08:17
@hughns hughns requested a review from toger5 August 9, 2024 10:27
Copy link
Member

@AndrewFerr AndrewFerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some documentation nitpicks

src/matrixrtc/CallMembership.ts Show resolved Hide resolved
src/matrixrtc/CallMembership.ts Outdated Show resolved Hide resolved
@hughns hughns added this pull request to the merge queue Aug 15, 2024
Merged via the queue into develop with commit 4679087 Aug 15, 2024
26 checks passed
@hughns hughns deleted the hughns/matrixrtc-use-origin-server-ts branch August 15, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants