diff --git a/app/screens/apps_form/apps_form_container.tsx b/app/screens/apps_form/apps_form_container.tsx index 97dd76766..4da480613 100644 --- a/app/screens/apps_form/apps_form_container.tsx +++ b/app/screens/apps_form/apps_form_container.tsx @@ -81,7 +81,7 @@ export default class AppsFormContainer extends PureComponent { switch (callResp.type) { case AppCallResponseTypes.OK: if (callResp.markdown) { - this.props.actions.sendEphemeralPost(callResp.markdown); + this.props.actions.sendEphemeralPost(callResp.markdown, call.context.channel_id, call.context.root_id || call.context.post_id); } break; case AppCallResponseTypes.FORM: diff --git a/app/screens/post_options/bindings/bindings.tsx b/app/screens/post_options/bindings/bindings.tsx index 63a4ca090..6bb9f1fe1 100644 --- a/app/screens/post_options/bindings/bindings.tsx +++ b/app/screens/post_options/bindings/bindings.tsx @@ -118,7 +118,7 @@ class Option extends React.PureComponent { } const callResp = (res as {data: AppCallResponse}).data; - const ephemeral = (message: string) => sendEphemeralPost(message, post.channel_id, post.root_id); + const ephemeral = (message: string) => sendEphemeralPost(message, post.channel_id, post.root_id || post.id); switch (callResp.type) { case AppCallResponseTypes.OK: if (callResp.markdown) { diff --git a/app/screens/post_options/post_options.js b/app/screens/post_options/post_options.js index c83021d95..4da5fa9b4 100644 --- a/app/screens/post_options/post_options.js +++ b/app/screens/post_options/post_options.js @@ -237,10 +237,6 @@ export default class PostOptions extends PureComponent { }; getAppsOptions = () => { - if (!this.props.showAppOptions) { - return null; - } - const {post} = this.props; return (