VIH-11028 redirect to service error on primary device when participant connects on a secondary device #2264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira link
VIH-11028
Change description
There is an outstanding issue involving users who connect to the same hearing with the same account on multiple devices. This typically results in a disconnect of the former connection. However, this overlaps with a retry connection logic which attempts to dial back into the conference after a period of time. This causes both logged in browsers to battle for who is connected and results in a bad experience.
A solution is to capture the reason from the supplier, and if the reason contains the message 'connected on another device' and the participant's call tag, then redirect the user away from the hearing room.
Capture the reason from the callback event and publish it to the participant status message.
Participant Status Message Enhancements:
VideoWeb/VideoWeb.EventHub/Handlers/Core/EventHandlerBase.cs
: Added areason
parameter to thePublishParticipantStatusMessage
method and updated its calls.Interface and Unit Test Updates:
VideoWeb/VideoWeb.EventHub/Hub/IEventHubClient.cs
: Added areason
parameter to theParticipantStatusMessage
method.Dependency Updates:
VideoWeb/VideoWeb/ClientApp/package-lock.json
: Updatedpuppeteer
from version23.2.0
to23.5.1
and@puppeteer/browsers
from version2.3.1
to2.4.0
. [1] [2]