From ec5f40a4235369de7ffb45caaee822cbc1a7d8ba Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 3 May 2017 11:55:06 -0400 Subject: Add back button to RHS threads from pinned posts (#6306) --- webapp/stores/post_store.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webapp/stores') diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index 4a5763c0e..5a1dc5cf8 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -509,8 +509,8 @@ class PostStoreClass extends EventEmitter { return threadPosts; } - emitSelectedPostChange(fromSearch, fromFlaggedPosts) { - this.emit(SELECTED_POST_CHANGE_EVENT, fromSearch, fromFlaggedPosts); + emitSelectedPostChange(fromSearch, fromFlaggedPosts, fromPinnedPosts) { + this.emit(SELECTED_POST_CHANGE_EVENT, fromSearch, fromFlaggedPosts, fromPinnedPosts); } addSelectedPostChangeListener(callback) { @@ -717,7 +717,7 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => { break; case ActionTypes.RECEIVED_POST_SELECTED: PostStore.storeSelectedPostId(action.postId); - PostStore.emitSelectedPostChange(action.from_search, action.from_flagged_posts); + PostStore.emitSelectedPostChange(action.from_search, action.from_flagged_posts, action.from_pinned_posts); break; case ActionTypes.RECEIVED_POST_PINNED: case ActionTypes.RECEIVED_POST_UNPINNED: -- cgit v1.2.3-1-g7c22