Merge pull request #2252 from hmhealey/plt2129

PLT-2129 Ignored posts deleted from channels that we haven't visited
Этот коммит содержится в:
Corey Hulen
2016-02-25 08:02:18 -08:00
родитель e66520ea47 8154995e43
Коммит 8e9e9f7c87

Просмотреть файл

@@ -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)) {