diff options
author | Corey Hulen <corey@hulen.com> | 2016-02-25 08:02:18 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-02-25 08:02:18 -0800 |
commit | 8e9e9f7c87ec984668060d79650ec4307ca6cd44 (patch) | |
tree | c6f2425b1e8d47362b81b1d58d8511cee23b2041 /web/react | |
parent | e66520ea47819851d0d3b28a68da9c2b8f6ea404 (diff) | |
parent | 8154995e43d76fb46e57e005541078b15a231406 (diff) | |
download | chat-8e9e9f7c87ec984668060d79650ec4307ca6cd44.tar.gz chat-8e9e9f7c87ec984668060d79650ec4307ca6cd44.tar.bz2 chat-8e9e9f7c87ec984668060d79650ec4307ca6cd44.zip |
Merge pull request #2252 from hmhealey/plt2129
PLT-2129 Ignored posts deleted from channels that we haven't visited
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/stores/post_store.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/react/stores/post_store.jsx b/web/react/stores/post_store.jsx index 5100a4936..1dc0dc9bf 100644 --- a/web/react/stores/post_store.jsx +++ b/web/react/stores/post_store.jsx @@ -265,6 +265,12 @@ class PostStoreClass extends EventEmitter { } deletePost(post) { + const postInfo = this.postsInfo[post.channel_id]; + if (!postInfo) { + // the post that has been deleted is in a channel that we haven't seen so just ignore it + return; + } + const postList = this.postsInfo[post.channel_id].postList; if (isPostListNull(postList)) { |