diff options
author | Joas Schilling <coding@schilljs.com> | 2021-06-24 10:26:34 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-24 10:29:38 +0200 |
commit | ad7584b69c3df0a06e5410b36ba08d5ab7ab4648 (patch) | |
tree | c5a5954f71ff254454957126930f45c8c0b2b1e3 | |
parent | 362d11f81b1914f33d91e532cadfd6e06d42a584 (diff) |
Keep presentation mode if you or someone else still has a screenshare
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/components/CallView/CallView.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/CallView/CallView.vue b/src/components/CallView/CallView.vue index 7efcd9cf7..ab2eab3f4 100644 --- a/src/components/CallView/CallView.vue +++ b/src/components/CallView/CallView.vue @@ -361,7 +361,7 @@ export default { // Everytime a new screen is shared, switch to promoted view if (newValue.length > previousValue.length) { this.$store.dispatch('startPresentation') - } else if (newValue.length === 0 && previousValue.length > 0) { + } else if (newValue.length === 0 && previousValue.length > 0 && !this.hasLocalScreen) { // last screen share stopped, reopening stripe this.$store.dispatch('stopPresentation') } @@ -370,7 +370,7 @@ export default { // Everytime the local screen is shared, switch to promoted view if (showLocalScreen) { this.$store.dispatch('startPresentation') - } else { + } else if (this.callParticipantModelsWithScreen.length === 0) { this.$store.dispatch('stopPresentation') } }, |