Skip to content

[stable26] Fix RemoteVideoBlocker still active after removing its associated model#9131

Merged
nickvergessen merged 1 commit intostable26from
backport/9125/stable26
Mar 22, 2023
Merged

[stable26] Fix RemoteVideoBlocker still active after removing its associated model#9131
nickvergessen merged 1 commit intostable26from
backport/9125/stable26

Conversation

@backportbot-nextcloud
Copy link

backport of #9125

Once a CallParticipantModel is removed its associated RemoteVideoBlocker
should no longer block the remote video. Otherwise a deferred blocking
would be rejected by the HPB, as the remote peer is no longer available
or, even worse, it could be accepted and block the video of the remote
peer if it joined again since the original model was removed.

To solve that now the RemoteVideoBlocker is destroyed once its
associated model is removed, which causes the RemoteVideoBlocker to
ignore any further call on its methods. Note that the RemoteVideoBlocker
reference can not be nullified instead on the shared datas, as other
components, like the VideoView, expect a RemoteVideoBlocker to be always
available in its shared data. Internally ignoring further calls also
makes the code more robust than just externally guarding any possible
call.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@nickvergessen nickvergessen merged commit 95aea32 into stable26 Mar 22, 2023
@nickvergessen nickvergessen deleted the backport/9125/stable26 branch March 22, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: call 📹 Voice and video calls feature: frontend 🖌️ "Web UI" client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants