From 8154995e43d76fb46e57e005541078b15a231406 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 25 Feb 2016 10:18:48 -0500 Subject: Ignored posts deleted from channels that we haven't visited --- web/react/stores/post_store.jsx | 6 ++++++ 1 file changed, 6 insertions(+) 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)) { -- cgit v1.2.3-1-g7c22