diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-01-27 12:50:19 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-01-27 12:50:19 -0500 |
commit | ceebfe20ba2c84d98344db650c5a856b9fba02fc (patch) | |
tree | a579da50e9e38fd4dd7026ae976502849de79999 /web/react/stores/post_store.jsx | |
parent | e467241a10e75c583c4d9ee0a4c6205a1175fab1 (diff) | |
parent | 1575488650f4d6df49820043af68e57489c66a46 (diff) | |
download | chat-ceebfe20ba2c84d98344db650c5a856b9fba02fc.tar.gz chat-ceebfe20ba2c84d98344db650c5a856b9fba02fc.tar.bz2 chat-ceebfe20ba2c84d98344db650c5a856b9fba02fc.zip |
Merge pull request #1996 from mattermost/plt-1768
PLT-1768 Clear deleted messages after channel leave and fix missig postlist error
Diffstat (limited to 'web/react/stores/post_store.jsx')
-rw-r--r-- | web/react/stores/post_store.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/stores/post_store.jsx b/web/react/stores/post_store.jsx index 2212edadb..7abadf2b1 100644 --- a/web/react/stores/post_store.jsx +++ b/web/react/stores/post_store.jsx @@ -451,6 +451,8 @@ class PostStoreClass extends EventEmitter { post.filenames = []; posts[post.id] = post; + + this.makePostsInfo(post.channel_id); this.postsInfo[post.channel_id].deletedPosts = posts; } @@ -610,7 +612,7 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => { case ActionTypes.CLICK_CHANNEL: PostStore.clearFocusedPost(); PostStore.clearChannelVisibility(action.id, true); - PostStore.clearUnseenDeletedPosts(action.id); + PostStore.clearUnseenDeletedPosts(action.prev); break; case ActionTypes.CREATE_POST: PostStore.storePendingPost(action.post); |