summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_post.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r--webapp/components/create_post.jsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index 6bd5f0293..24ebd60b5 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -112,10 +112,11 @@ export default class CreatePost extends React.Component {
PostStore.storeDraft(this.state.channelId, null);
this.setState({message: '', postError: null, fileInfos: []});
+ const args = {};
+ args.channel_id = this.state.channelId;
ChannelActions.executeCommand(
- this.state.channelId,
post.message,
- false,
+ args,
(data) => {
this.setState({submitting: false});
@@ -357,10 +358,11 @@ export default class CreatePost extends React.Component {
showShortcuts(e) {
if ((e.ctrlKey || e.metaKey) && e.keyCode === Constants.KeyCodes.FORWARD_SLASH) {
e.preventDefault();
+ const args = {};
+ args.channel_id = this.state.channelId;
ChannelActions.executeCommand(
- this.state.channelId,
- '/shortcuts ',
- false,
+ '/shortcuts',
+ args,
null,
(err) => {
this.setState({