diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 18:23:06 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 18:23:06 +0300 |
commit | 726fd807fc22156d7cad0b0cae6b2c88543f79ff (patch) | |
tree | 0386e6a391cb80e5db9e97e473ffb6215f3322f4 /src/PublicShareSidebar.vue | |
parent | d72448c5eb0b7273f40e1ce701f26110588cab0e (diff) |
Decouple participantsService from the store
Moved joinConversation, leaveConversation and a few other dependencies
to the participantsStore.
Removes the dependency to the store from participantsService.
There's a slight change of behavior: joinConversation in the service now
also connects to signaling, and only when this is done the first
action dispatch are done. In the previous implementation the store
already received some updates before we even connected to signaling.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/PublicShareSidebar.vue')
-rw-r--r-- | src/PublicShareSidebar.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PublicShareSidebar.vue b/src/PublicShareSidebar.vue index 2eb6683cf..490e9a083 100644 --- a/src/PublicShareSidebar.vue +++ b/src/PublicShareSidebar.vue @@ -52,7 +52,6 @@ import CallButton from './components/TopBar/CallButton' import { EventBus } from './services/EventBus' import { getPublicShareConversationData } from './services/filesIntegrationServices' import { - joinConversation, leaveConversationSync, } from './services/participantsService' import { signalingKill } from './utils/webrtc/index' @@ -142,7 +141,7 @@ export default { await this.getPublicShareConversationData() - await joinConversation(this.token) + await this.$store.dispatch('joinConversation', { token: this.token }) // No need to wait for it, but fetching the conversation needs to be // done once the user has joined the conversation (otherwise only |