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.
Note that enable and disable a device refers to switching audio and video between none and a specific device in Talk settings, not to enable and disable audio and video in the controls.
The issues are there also in previous Talk versions. However one of the fixes requires a new endpoint to update the call flags (updating the call flags when a device is disabled), and currently it is just an aesthetic issue (in the future it might be needed to grant and revoke publishing permissions without having to force a reconnection), so (for once :-P ) I would vote to not backport it.
How to test (scenario 1)
Result with this pull request
The join call endpoint is called with flags = 7 (in call, audio and video)
Result without this pull request
The join call endpoint is called without flags (in the participant list the video icon will be shown just for sheer luck, as the server sets the default flags, which happen to be 7, when none is given)
How to test (scenario 2)
Result with this pull request
In the participant list the video icon is shown for the current participant
Result without this pull request
In the participant list the audio icon is shown for the current participant
How to test (scenario 3)
Result with this pull request
In the participant list the audio icon is shown for the current participant
Result without this pull request
In the participant list the video icon is shown for the current participant
How to test (scenario 4)
Result with this pull request
In the participant list the audio or video icon is shown depending on the case for the current participant
Result without this pull request
In the participant list the video icon is shown for the current participant