Skip to content

Commit

Permalink
Merge pull request #13458 from nextcloud/fix/noid/call-view-rendering
Browse files Browse the repository at this point in the history
fix: do not show two promoted videos
  • Loading branch information
Antreesy authored Oct 2, 2024
2 parents 79805c8 + fe49e77 commit 1127cde
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:class="{'full-page': showFullPage}">
<!-- Selected video override mode -->
<VideoVue v-if="showSelectedVideo && selectedCallParticipantModel"
:key="selectedVideoPeerId"
:key="`promoted-${selectedVideoPeerId}`"
:token="token"
:model="selectedCallParticipantModel"
:shared-data="sharedDatas[selectedVideoPeerId]"
Expand Down Expand Up @@ -58,18 +58,9 @@
: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="promotedParticipantModel.attributes.peerId"
:key="`autopilot-${promotedParticipantModel.attributes.peerId}`"
:token="token"
:model="promotedParticipantModel"
:shared-data="sharedDatas[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 1127cde

Please sign in to comment.