Skip to content

Commit

Permalink
fix(CallView): enforce switching to Speaker view then select screensh…
Browse files Browse the repository at this point in the history
…ares

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 5, 2024
1 parent 9efd7e0 commit 3f87094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
5 changes: 5 additions & 0 deletions src/store/callViewStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,12 @@ const actions = {
startPresentation(context) {
// don't start twice, this would prevent multiple
// screen shares to clear the last call view state
// only switch to Speaker view and hide Stripe
if (context.getters.presentationStarted) {
context.dispatch('setCallViewMode', {
isGrid: false,
isStripeOpen: false,
})
return
}

Expand Down

0 comments on commit 3f87094

Please sign in to comment.