summaryrefslogtreecommitdiffstats
path: root/web/react/stores/post_store.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-01-27 10:50:48 -0500
committerJoramWilander <jwawilander@gmail.com>2016-01-27 10:50:48 -0500
commit1575488650f4d6df49820043af68e57489c66a46 (patch)
tree970815996678066b2aa5ff7673c6984c6acf443c /web/react/stores/post_store.jsx
parent2b1b1e28e113f8a902f2e2f8d8a639acddbea316 (diff)
downloadchat-1575488650f4d6df49820043af68e57489c66a46.tar.gz
chat-1575488650f4d6df49820043af68e57489c66a46.tar.bz2
chat-1575488650f4d6df49820043af68e57489c66a46.zip
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.jsx4
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);