summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-03 11:55:06 -0400
committerCorey Hulen <corey@hulen.com>2017-05-03 08:55:06 -0700
commitec5f40a4235369de7ffb45caaee822cbc1a7d8ba (patch)
tree7120f075ba8cf82e8bee6951e9cb48207da5b9a2 /webapp/stores
parent6a6c5365d335666b5f76b92d1f41314e6873197f (diff)
downloadchat-ec5f40a4235369de7ffb45caaee822cbc1a7d8ba.tar.gz
chat-ec5f40a4235369de7ffb45caaee822cbc1a7d8ba.tar.bz2
chat-ec5f40a4235369de7ffb45caaee822cbc1a7d8ba.zip
Add back button to RHS threads from pinned posts (#6306)
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/post_store.jsx6
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: