From d6a786c6611b7ac605ff11114a526df460b40fdf Mon Sep 17 00:00:00 2001 From: Nikita Konev Date: Fri, 27 Dec 2024 01:49:40 +0300 Subject: [PATCH] auto detach pinned video in case removeComponent --- frontend/src/ChatVideo.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/ChatVideo.vue b/frontend/src/ChatVideo.vue index 21ccbf56..946aed95 100644 --- a/frontend/src/ChatVideo.vue +++ b/frontend/src/ChatVideo.vue @@ -390,6 +390,10 @@ export default { } } + if (track.sid === this.chatStore.pinnedTrackSid) { + this.chatStore.pinnedTrackSid = null; + } + this.recalculateLayout(); this.electNewPresenterIfNeed(); },