зеркало из https://github.com/nextcloud/spreed.git
Remove nested docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
d0ec78e78e
Коммит
6b6778129a
|
@ -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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче