diff options
author | Joas Schilling <coding@schilljs.com> | 2021-08-30 17:15:52 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-08-30 17:15:52 +0300 |
commit | 6b6778129ad5b357db284b570b841f605595767e (patch) | |
tree | 58d213728c5b6162e752e8c2cc903391497479cf | |
parent | d0ec78e78e8bd8e7f5117c9417f2bea66c15b92a (diff) |
Remove nested docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/store/messagesStore.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index 8e1541d8d..221ae5bd6 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -141,27 +141,12 @@ const getters = { } return [] }, - /** - * Gets the messages object - * - * @param {object} state the state object. - * @param {string} token the conversation token. - * @return {object} the messages object (if there are messages in the store) - */ messages: (state) => (token) => { if (state.messages[token]) { return state.messages[token] } return {} }, - /** - * Gets a single message object - * - * @param {object} state the state object. - * @param {string} token the conversation token. - * @param {string} id the message id. - * @return {object} the message object (if the message is found in the store) - */ message: (state) => (token, id) => { if (state.messages[token][id]) { return state.messages[token][id] |