Skip to content

Commit

Permalink
Merge pull request #11726 from nextcloud/fix/noid/toggle-screen-shares
Browse files Browse the repository at this point in the history
fix(CallView): enforce switching to Speaker view then select screenshares
  • Loading branch information
nickvergessen authored Mar 8, 2024
2 parents 2fe9ad6 + e5c4905 commit 0be58c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,15 @@ export default {
return
}

this.$store.dispatch('startPresentation')
if (this.$store.getters.presentationStarted) {
this.$store.dispatch('setCallViewMode', {
isGrid: false,
isStripeOpen: false,
clearLast: false,
})
} else {
this.$store.dispatch('startPresentation')
}
this.$store.dispatch('selectedVideoPeerId', null)
this.screens.splice(index, 1)
this.screens.unshift(id)
Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/VideoBottomBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default {
},

switchToScreen() {
if (!this.sharedData.screenVisible) {
if (!this.sharedData.screenVisible || !this.isBig) {
emit('switch-screen-to-id', this.model.attributes.peerId)
}
},
Expand Down

0 comments on commit 0be58c6

Please sign in to comment.