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

fix: videoconf ringer not working after a temporary disconnection #35330

Merged
merged 4 commits into from
Mar 7, 2025

Conversation

pierre-lehnen-rc
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc commented Feb 25, 2025

Proposed changes (including videos or screenshots)

The VideoConfManager was tracking changes to the authenticated UserId to determine if an user is logged in or not, but in some cases when the connection to the server is interrupted and a new connection is started, the UserId will be available before the new Connection's authentication is completed. In some situation that we were not yet able to reproduce in development, this caused the client to attempt to subscribe to videoconf events in an unauthenticated connection, which would fail and prevent videoconf messages from being received.
This PR changes the VideoConfManager to track the connection and authentication state along with the UserId, ensuring that the subscription is refreshed whenever any of those things change.

Issue(s)

SUP-744

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Feb 25, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Feb 25, 2025

🦋 Changeset detected

Latest commit: e60575a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review February 25, 2025 14:53
@pierre-lehnen-rc pierre-lehnen-rc requested a review from a team as a code owner February 25, 2025 14:53
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.42%. Comparing base (bc23e6f) to head (e60575a).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35330      +/-   ##
===========================================
- Coverage    59.46%   59.42%   -0.04%     
===========================================
  Files         2830     2829       -1     
  Lines        68582    68330     -252     
  Branches     15178    15132      -46     
===========================================
- Hits         40781    40606     -175     
+ Misses       25132    25066      -66     
+ Partials      2669     2658      -11     
Flag Coverage Δ
unit 75.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aleksandernsilva
Copy link
Contributor

@pierre-lehnen-rc could you add a milestone and the steps to reproduce the issue in the PR description?

@aleksandernsilva aleksandernsilva added this to the 7.5.0 milestone Feb 26, 2025
@aleksandernsilva aleksandernsilva added the stat: QA assured Means it has been tested and approved by a company insider label Feb 26, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Feb 26, 2025
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Feb 26, 2025
Copy link
Contributor

github-actions bot commented Mar 7, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35330/

Built to branch gh-pages at 2025-03-07 10:03 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@scuciatto scuciatto added stat: QA assured Means it has been tested and approved by a company insider and removed stat: QA assured Means it has been tested and approved by a company insider labels Mar 7, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Mar 7, 2025
@kodiakhq kodiakhq bot merged commit bbf12a1 into develop Mar 7, 2025
51 checks passed
@kodiakhq kodiakhq bot deleted the fix/videoconf-calls-not-working-after-reconnect branch March 7, 2025 10:33
@scuciatto
Copy link
Member

/patch

Copy link
Contributor

dionisio-bot bot commented Mar 7, 2025

Pull request #35422 added to Project: "undefined"

@scuciatto
Copy link
Member

/backport 7.3.4

Copy link
Contributor

dionisio-bot bot commented Mar 7, 2025

Pull request #35431 added to Project: "undefined"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants