diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-10-06 16:44:41 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-10-06 17:44:41 -0300 |
commit | 7fb818d4cef09dd74f9fcfd99381a7c0e7064a56 (patch) | |
tree | 0f79dd96a91420f4a4fa377ecc900deeb084416a /webapp | |
parent | c9793a566a4f425997448a742b16ed8754c17bae (diff) | |
download | chat-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')
-rw-r--r-- | webapp/stores/post_store.jsx | 2 | ||||
-rw-r--r-- | webapp/utils/async_client.jsx | 1 |
2 files changed, 2 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: [] }); } } diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index c5b0d015b..30bc474f8 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -722,6 +722,7 @@ export function getFileInfosForPost(channelId, postId) { return; } + callTracker[callName] = utils.getTimestamp(); Client.getFileInfosForPost( channelId, postId, |