diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-24 14:19:00 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-07-01 10:00:24 +0200 |
commit | 389d7b6bfc16a29ced52cb41b0e7fbb5facbb4c9 (patch) | |
tree | 1a6ba1d542926329f0957bd76d9a9fea59a55a36 /src/App.vue | |
parent | 5f83e2385c924b0612522a80ae312cdf87042751 (diff) |
Trigger a vue event when SessionStorage "joined_conversation" changes
Otherwise there is no update of the computed and the call screen will not show up.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/App.vue b/src/App.vue index 9202f3095..e10088c1b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -45,7 +45,6 @@ import Router from './router/router' import RightSidebar from './components/RightSidebar/RightSidebar' import { EventBus } from './services/EventBus' import BrowserStorage from './services/BrowserStorage' -import SessionStorage from './services/SessionStorage' import { getCurrentUser } from '@nextcloud/auth' import { fetchConversation } from './services/conversationsService' import { @@ -59,6 +58,7 @@ import { import { emit } from '@nextcloud/event-bus' import browserCheck from './mixins/browserCheck' import duplicateSessionHandler from './mixins/duplicateSessionHandler' +import isInCall from './mixins/isInCall' import talkHashCheck from './mixins/talkHashCheck' import { generateUrl } from '@nextcloud/router' @@ -76,6 +76,7 @@ export default { browserCheck, talkHashCheck, duplicateSessionHandler, + isInCall, ], data: function() { @@ -116,11 +117,6 @@ export default { } }, - isInCall() { - return SessionStorage.getItem('joined_conversation') === this.token - && this.participant.inCall !== PARTICIPANT.CALL_FLAG.DISCONNECTED - }, - warnLeaving() { return !this.isLeavingAfterSessionConflict && this.isInCall }, |