Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-16 12:33:03 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-01 11:00:24 +0300
commit977521581615ff5ba143f5189a5d1920a18042e7 (patch)
treeb9db29e4842e5008869738b901103fef97c0bdda /src/PublicShareSidebar.vue
parent9fc01a64392d7c1e79a871aec0c90b8d4244067f (diff)
Redirect to a plain page to avoid reconnections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/PublicShareSidebar.vue')
-rw-r--r--src/PublicShareSidebar.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PublicShareSidebar.vue b/src/PublicShareSidebar.vue
index 9edb2377a..d5cb407e2 100644
--- a/src/PublicShareSidebar.vue
+++ b/src/PublicShareSidebar.vue
@@ -35,7 +35,7 @@
<CallView v-if="isInCall"
:token="token"
:is-sidebar="true" />
- <PreventUnload :when="isInCall" />
+ <PreventUnload :when="warnLeaving" />
<CallButton class="call-button" />
<ChatView :token="token" />
</template>
@@ -59,6 +59,7 @@ import {
} from './services/participantsService'
import { signalingKill } from './utils/webrtc/index'
import browserCheck from './mixins/browserCheck'
+import duplicateSessionHandler from './mixins/duplicateSessionHandler'
import talkHashCheck from './mixins/talkHashCheck'
export default {
@@ -74,6 +75,7 @@ export default {
mixins: [
browserCheck,
+ duplicateSessionHandler,
talkHashCheck,
],
@@ -119,6 +121,10 @@ export default {
return participant.inCall !== PARTICIPANT.CALL_FLAG.DISCONNECTED
},
+
+ warnLeaving() {
+ return !this.isLeavingAfterSessionConflict && this.isInCall
+ },
},
beforeMount() {