Skip to content

Button on message attachment not showing #2684

@bart11064

Description

@bart11064

Description:

As suggested here, I'm opening a new issue.
When sending a message using API, button described in attachments doesn't display on mobile app (works well on web version).

API endpoint : http://localhost:3000/api/v1/chat.sendMessage
JSON content :

{"message": {
            "rid": "GENERAL",
            "attachments": [{
                  "color": "#ff0000",
                  "text": "Test buttons",
                  "button_alignment": "horizontal",
                  "actions": [
                       {
                           "type": "button",
                           "text": "Text button",
                           "msg": "Response message",
                           "msg_in_chat_window": true
                      }
                  ]
            }] }
}

Environment Information:

  • Rocket.Chat Server Version: 3.8.0
  • Rocket.Chat App Version: 4.12.1.21512

Expected behavior:

Expecting to see buttons on both interfaces : web and mobile app

Actual behavior:

Web view (normal behavior) :
image

Mobile app view (no button showed) :

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions