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/store
diff options
context:
space:
mode:
authormarco <marcoambrosini@pm.me>2021-10-22 16:20:48 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-04 18:34:21 +0300
commit855513fda9d2c3c9ae12b2644e9b7429cd737106 (patch)
treeed945bc8fcc8e5f42d3f7340b3372e951e0ecac8 /src/store
parentfb7ba9e7a394e652cc7233f33c0d2d46bda9f61f (diff)
Add store actions
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/conversationsStore.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js
index 81e209c1f..2105a302f 100644
--- a/src/store/conversationsStore.js
+++ b/src/store/conversationsStore.js
@@ -38,6 +38,8 @@ import {
clearConversationHistory,
setNotificationLevel,
setNotificationCalls,
+ setConversationPermissions,
+ setCallPermissions,
} from '../services/conversationsService'
import { getCurrentUser } from '@nextcloud/auth'
import { CONVERSATION, WEBINAR, PARTICIPANT } from '../constants'
@@ -141,6 +143,14 @@ const mutations = {
setNotificationCalls(state, { token, notificationCalls }) {
Vue.set(state.conversations[token], 'notificationCalls', notificationCalls)
},
+
+ setConversationPermissions(state, { token, permissions }) {
+ Vue.set(state.conversations[token], 'defaultPermissions', permissions)
+ },
+
+ setCallPermissions(state, { token, permissions }) {
+ Vue.set(state.conversations[token], 'callPermissions', permissions)
+ },
}
const actions = {
@@ -465,6 +475,16 @@ const actions = {
return conversation
},
+
+ async setConversationPermissions(context, { token, permissions }) {
+ await setConversationPermissions(token, permissions)
+ context.commit('setConversationPermissions', { token, permissions })
+ },
+
+ async setCallPermissions(context, { token, permissions }) {
+ await setCallPermissions(token, permissions)
+ context.commit('setCallPermissions', { token, permissions })
+ },
}
export default { state, mutations, getters, actions }