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
path: root/src/views
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-25 16:39:53 +0300
committerJoas Schilling <coding@schilljs.com>2021-03-08 13:56:18 +0300
commit6184127a50ad62e429600e2d6cc0310d2873af6d (patch)
tree58bdf97f1689021ccee910b6ea4ce61b24ce7a16 /src/views
parenta545cff72b2249258de51b6ce3d979e6d22a090b (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.vue3
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(),