summaryrefslogtreecommitdiffstats
path: root/webapp/actions/post_actions.jsx
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/actions/post_actions.jsx
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/actions/post_actions.jsx')
-rw-r--r--webapp/actions/post_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx
index 3174fe681..969c764f1 100644
--- a/webapp/actions/post_actions.jsx
+++ b/webapp/actions/post_actions.jsx
@@ -142,7 +142,7 @@ export function getFlaggedPosts() {
);
}
-export function getPinnedPosts(channelId) {
+export function getPinnedPosts(channelId = ChannelStore.getCurrentId()) {
Client.getPinnedPosts(channelId,
(data) => {
AppDispatcher.handleServerAction({