Skip to content

Commit

Permalink
fix(CallView): enforce switching to Speaker view when selecting a scr…
Browse files Browse the repository at this point in the history
…een share to follow

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 6, 2024
1 parent 0064a95 commit e5c4905
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 e5c4905

Please sign in to comment.