diff options
Diffstat (limited to 'src/store/conversationsStore.js')
-rw-r--r-- | src/store/conversationsStore.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js index 00a15d4a3..8369787f6 100644 --- a/src/store/conversationsStore.js +++ b/src/store/conversationsStore.js @@ -30,7 +30,7 @@ import { addToFavorites, removeFromFavorites, setConversationName, -} from '../services/conversationsService' + setConversationDescription } from '../services/conversationsService' import { getCurrentUser } from '@nextcloud/auth' import { CONVERSATION, WEBINAR, PARTICIPANT } from '../constants' @@ -102,6 +102,10 @@ const mutations = { purgeConversationsStore(state) { Object.assign(state, getDefaultState()) }, + + setConversationDescription(state, { token, description }) { + Vue.set(state.conversations[token], 'description', description) + }, } const actions = { @@ -231,6 +235,11 @@ const actions = { commit('addConversation', conversation) }, + async setConversationDescription({ commit }, { token, description }) { + await setConversationDescription(token, description) + commit('setConversationDescription', { token, description }) + }, + async setReadOnlyState({ commit, getters }, { token, readOnly }) { const conversation = Object.assign({}, getters.conversations[token]) if (!conversation) { |