diff options
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/post_store.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
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: |