diff options
author | Joas Schilling <coding@schilljs.com> | 2020-02-10 19:51:18 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-02-11 00:04:26 +0300 |
commit | b30402502979bd4fde98d7a40aeaaa253ca486b0 (patch) | |
tree | 9bbde142d63eb77f8f9f073daefde1f5aa2b3c6e /src/PublicShareAuthSidebar.vue | |
parent | 13e16e84e4cca590e76d03182cfd62669300eb1a (diff) |
Fix video verification for registered users
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/PublicShareAuthSidebar.vue')
-rw-r--r-- | src/PublicShareAuthSidebar.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PublicShareAuthSidebar.vue b/src/PublicShareAuthSidebar.vue index 4f70c5e90..d8722c82c 100644 --- a/src/PublicShareAuthSidebar.vue +++ b/src/PublicShareAuthSidebar.vue @@ -110,6 +110,10 @@ export default { methods: { async joinConversation() { + if (getCurrentUser()) { + this.$store.dispatch('setCurrentUser', getCurrentUser()) + } + await joinConversation(this.token) // Fetching the conversation needs to be done once the user has @@ -161,9 +165,7 @@ export default { // Although the current participant is automatically added to // the participants store it must be explicitly set in the // actors store. - if (getCurrentUser()) { - this.$store.dispatch('setCurrentUser', getCurrentUser()) - } else { + if (!this.$store.getters.getUserId()) { // Setting a guest only uses "sessionId" and "participantType". this.$store.dispatch('setCurrentParticipant', response.data.ocs.data) } |