Skip to content

Commit

Permalink
fix: do not show two promoted videos
Browse files Browse the repository at this point in the history
- PresenterOverlay broke v-else-if flow in previous place
- also add distinct keys to prevent rendering issues

Signed-off-by: Maksim Sukharev <[email protected]>
(cherry picked from commit fe49e77)
  • Loading branch information
Antreesy committed Oct 14, 2024
1 parent 406c5f3 commit 2220165
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@
:call-participant-model="shownRemoteScreenCallParticipantModel"
:shared-data="sharedDatas[shownRemoteScreenPeerId]"
is-big />
<!-- presenter overlay -->
<PresenterOverlay v-if="shouldShowPresenterOverlay"
:token="token"
:model="presenterModel"
:shared-data="presenterSharedData"
:is-local-presenter="showLocalScreen"
:local-media-model="localMediaModel"
:is-collapsed="!showPresenterOverlay"
@click="toggleShowPresenterOverlay" />
<!-- Promoted "autopilot" mode -->
<VideoVue v-else-if="promotedParticipantModel"
:key="`autopilot-${promotedParticipantModel.attributes.peerId}`"
Expand All @@ -80,6 +71,15 @@
:is-one-to-one="isOneToOne"
:is-sidebar="isSidebar"
@force-promote-video="forcePromotedModel = $event" />
<!-- presenter overlay -->
<PresenterOverlay v-if="shouldShowPresenterOverlay"
:token="token"
:model="presenterModel"
:shared-data="presenterSharedData"
:is-local-presenter="showLocalScreen"
:local-media-model="localMediaModel"
:is-collapsed="!showPresenterOverlay"
@click="toggleShowPresenterOverlay" />

<div v-else-if="devMode && !isGrid"
class="dev-mode-video--promoted">
Expand Down

0 comments on commit 2220165

Please sign in to comment.