diff options
Diffstat (limited to 'src/PublicShareSidebar.vue')
-rw-r--r-- | src/PublicShareSidebar.vue | 8 |
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() { |