diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 17:23:06 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 17:23:06 +0200 |
commit | 726fd807fc22156d7cad0b0cae6b2c88543f79ff (patch) | |
tree | 0386e6a391cb80e5db9e97e473ffb6215f3322f4 /src/mainFilesSidebarLoader.js | |
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/mainFilesSidebarLoader.js')
-rw-r--r-- | src/mainFilesSidebarLoader.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainFilesSidebarLoader.js b/src/mainFilesSidebarLoader.js index ac297982a..ebd10123b 100644 --- a/src/mainFilesSidebarLoader.js +++ b/src/mainFilesSidebarLoader.js @@ -21,7 +21,6 @@ */ import FilesSidebarCallView from './views/FilesSidebarCallView' -import { leaveConversation } from './services/participantsService' import './init' const isEnabled = function(fileInfo) { @@ -35,7 +34,7 @@ const isEnabled = function(fileInfo) { // left; this must be done here because "setFileInfo" will not get // called with the new file if the tab can not be displayed. if (token) { - leaveConversation(token) + OCA.Talk.store.dispatch('leaveConversation', { token: token }) } OCA.Talk.store.dispatch('updateTokenAndFileIdForToken', { |