diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-16 12:57:21 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-07-01 11:00:24 +0300 |
commit | 5f83e2385c924b0612522a80ae312cdf87042751 (patch) | |
tree | 2d6fd7a727c54b3ce290f2b368b36dadc29d0b4f /src/FilesSidebarCallViewApp.vue | |
parent | 237d2f5a90ee9367d8e3178b82bf190e136a4747 (diff) |
Don't show call state when asking to kill the other session
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/FilesSidebarCallViewApp.vue')
-rw-r--r-- | src/FilesSidebarCallViewApp.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FilesSidebarCallViewApp.vue b/src/FilesSidebarCallViewApp.vue index 052cbbfd5..24e2e9fff 100644 --- a/src/FilesSidebarCallViewApp.vue +++ b/src/FilesSidebarCallViewApp.vue @@ -37,6 +37,7 @@ import PreventUnload from 'vue-prevent-unload' import browserCheck from './mixins/browserCheck' import duplicateSessionHandler from './mixins/duplicateSessionHandler' import talkHashCheck from './mixins/talkHashCheck' +import SessionStorage from './services/SessionStorage' export default { @@ -113,7 +114,8 @@ export default { const participant = this.$store.getters.getParticipant(this.token, participantIndex) - return participant.inCall !== PARTICIPANT.CALL_FLAG.DISCONNECTED + return SessionStorage.getItem('joined_conversation') === this.token + && participant.inCall !== PARTICIPANT.CALL_FLAG.DISCONNECTED }, warnLeaving() { |