diff options
author | Joas Schilling <coding@schilljs.com> | 2021-02-25 16:39:53 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-08 13:56:18 +0300 |
commit | 6184127a50ad62e429600e2d6cc0310d2873af6d (patch) | |
tree | 58bdf97f1689021ccee910b6ea4ce61b24ce7a16 /src/views | |
parent | a545cff72b2249258de51b6ce3d979e6d22a090b (diff) |
Make the UI handle the call state on it's interactions instead of the participant data
The user could have joined the call in another window/device and shouldn't jump to the call view
for this window unless the user pressed "Join call" here as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/MainView.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/MainView.vue b/src/views/MainView.vue index f14b75bd3..accfa6009 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -20,7 +20,6 @@ import CallView from '../components/CallView/CallView' import ChatView from '../components/ChatView' import LobbyScreen from '../components/LobbyScreen' import TopBar from '../components/TopBar/TopBar' -import { PARTICIPANT } from '../constants' import isInLobby from '../mixins/isInLobby' import isInCall from '../mixins/isInCall' import participant from '../mixins/participant' @@ -60,7 +59,7 @@ export default { watch: { isInLobby: function(isInLobby) { // User is now blocked by the lobby - if (isInLobby && this.participant.inCall !== PARTICIPANT.CALL_FLAG.DISCONNECTED) { + if (isInLobby && this.isInCall) { this.$store.dispatch('leaveCall', { token: this.token, participantIdentifier: this.$store.getters.getParticipantIdentifier(), |