summaryrefslogtreecommitdiffstats
path: root/webapp/stores/post_store.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-10-06 16:44:41 -0400
committerenahum <nahumhbl@gmail.com>2016-10-06 17:44:41 -0300
commit7fb818d4cef09dd74f9fcfd99381a7c0e7064a56 (patch)
tree0f79dd96a91420f4a4fa377ecc900deeb084416a /webapp/stores/post_store.jsx
parentc9793a566a4f425997448a742b16ed8754c17bae (diff)
downloadchat-7fb818d4cef09dd74f9fcfd99381a7c0e7064a56.tar.gz
chat-7fb818d4cef09dd74f9fcfd99381a7c0e7064a56.tar.bz2
chat-7fb818d4cef09dd74f9fcfd99381a7c0e7064a56.zip
PLT-3105 Fixed bugs with FileInfos migration, including duplicate FileInfos being saved (#4134)
* Added a limit to GetByPath for the rare cases when two old files had the same path * Fixed files still being displayed for deleted posts * Added a lock to prevent migrateFilenamesToFileInfos from migrating multiple posts at once
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r--webapp/stores/post_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx
index 22f47fd40..2d0d7a674 100644
--- a/webapp/stores/post_store.jsx
+++ b/webapp/stores/post_store.jsx
@@ -318,7 +318,7 @@ class PostStoreClass extends EventEmitter {
// make sure to copy the post so that component state changes work properly
postList.posts[post.id] = Object.assign({}, post, {
state: Constants.POST_DELETED,
- fileIds: []
+ file_ids: []
});
}
}