diff --git a/packages/rocketchat-integrations/server/api/api.coffee b/packages/rocketchat-integrations/server/api/api.coffee index 93ad5732930..f7a226df089 100644 --- a/packages/rocketchat-integrations/server/api/api.coffee +++ b/packages/rocketchat-integrations/server/api/api.coffee @@ -71,9 +71,9 @@ Api.addRoute ':integrationId/:userId/:token', authRequired: true, error: 'invalid-channel-type' message = - avatar: integration.avatar or @bodyParams.avatar or @bodyParams.icon_url - emoji: integration.emoji or @bodyParams.emoji or @bodyParams.icon_emoji - alias: integration.alias or @bodyParams.alias or @bodyParams.username + avatar: @bodyParams.icon_url or @bodyParams.avatar or integration.avatar + emoji: @bodyParams.icon_emoji or @bodyParams.emoji or integration.emoji + alias: @bodyParams.username or @bodyParams.alias or integration.alias msg: @bodyParams.text or '' attachments: @bodyParams.attachments parseUrls: false