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:
authormarco <marcoambrosini@pm.me>2022-04-25 12:29:58 +0300
committermarco <marcoambrosini@pm.me>2022-04-25 15:16:29 +0300
commit3da5f8d248105ae06321016d3b83842dcd3cf7e0 (patch)
tree517c9eabb6a32b636d43d0f861ed10a9b8e21842
parent1a869a62f758685b4ef9b4eaa8d497c9cdabd849 (diff)
Fix store methods
Signed-off-by: marco <marcoambrosini@pm.me>
-rw-r--r--src/store/sharedItemsStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/sharedItemsStore.js b/src/store/sharedItemsStore.js
index ce41820f7..aad851859 100644
--- a/src/store/sharedItemsStore.js
+++ b/src/store/sharedItemsStore.js
@@ -127,13 +127,13 @@ const actions = {
const response = await getSharedItems(token, type, lastKnownMessageId, limit)
const messages = response.data.ocs.data
const hasMore = messages.length >= limit
-
// loop over the response elements and add them to the store
for (const message in messages) {
+
commit('addSharedItemMessage', {
token,
type,
- message,
+ message: messages[message],
})
}
return hasMore