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
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/conversationsStore.js')
-rw-r--r--src/store/conversationsStore.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js
index a4c9f0457..ae59dcc20 100644
--- a/src/store/conversationsStore.js
+++ b/src/store/conversationsStore.js
@@ -76,9 +76,10 @@ const getters = {
conversationsList: state => Object.values(state.conversations),
/**
* Get a conversation providing it's token
+ *
* @param {object} state state object
- * @returns {function} The callback function
- * @returns {object} The conversation object
+ * @return {Function} The callback function
+ * @return {object} The conversation object
*/
conversation: state => token => state.conversations[token],
dummyConversation: state => Object.assign({}, DUMMY_CONVERSATION),
@@ -96,6 +97,7 @@ const mutations = {
},
/**
* Deletes a conversation from the store.
+ *
* @param {object} state current store state;
* @param {object} token the token of the conversation to delete;
*/
@@ -104,6 +106,7 @@ const mutations = {
},
/**
* Resets the store to it's original state
+ *
* @param {object} state current store state;
*/
purgeConversationsStore(state) {
@@ -189,6 +192,7 @@ const actions = {
* Delete a conversation from the server.
*
* @param {object} context default store context;
+ * @param token.token
* @param {object} token the token of the conversation to be deleted;
*/
async deleteConversationFromServer(context, { token }) {
@@ -201,6 +205,7 @@ const actions = {
* Delete all the messages from a conversation.
*
* @param {object} context default store context;
+ * @param token.token
* @param {object} token the token of the conversation whose history is
* to be cleared;
*/
@@ -218,6 +223,7 @@ const actions = {
/**
* Resets the store to it's original state.
+ *
* @param {object} context default store context;
*/
purgeConversationsStore(context) {