diff options
Diffstat (limited to 'lib/mattermost/presenter.rb')
-rw-r--r-- | lib/mattermost/presenter.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mattermost/presenter.rb b/lib/mattermost/presenter.rb index 6b12081575d..67eda983a74 100644 --- a/lib/mattermost/presenter.rb +++ b/lib/mattermost/presenter.rb @@ -49,7 +49,12 @@ module Mattermost private def show_result(result) - ephemeral_response(result.message) + case result.type + when :success + in_channel_response(result.message) + else + ephemeral_response(result.message) + end end def not_found |