Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button on message attachment not showing #2684

Closed
bart11064 opened this issue Dec 1, 2020 · 8 comments · Fixed by #2980
Closed

Button on message attachment not showing #2684

bart11064 opened this issue Dec 1, 2020 · 8 comments · Fixed by #2980
Labels

Comments

@bart11064
Copy link

bart11064 commented Dec 1, 2020

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) :

@yash-rajpal
Copy link
Member

I would be glad to take up this issue, can anyone please brief me on what has to be done here?

@diegolmello
Copy link
Member

@yash-rajpal You have to send a message and display a button like mentioned here

@yash-rajpal
Copy link
Member

@bart11064 Can you help me locate the setting for Enabling this in the admin panel. Admin panel contains tons of settings and I am not able to locate this particular setting. I turned on Allow Message Snippeting in the Message section, but this feature didn't work for me in the development server on localhost website.

@bart11064
Copy link
Author

@yash-rajpal thanks for your help.
There is no option in the option panel on my knowledge.
This display existed in the previous app, here is a link to the wiki : https://github.com/WideChat/Rocket.Chat.Android/wiki/Phased-approach-to-rich-message-support ans the android PR : RocketChat/Rocket.Chat.Android#1557
It disapeared with the react version.

@yash-rajpal
Copy link
Member

@bart11064 Thanks for the Information. Can you please ping me at rocket chat for further assistance?

@sumukhah
Copy link
Contributor

@yash-rajpal @diegolmello Is anyone working on this ?, Can I work on this?

@yash-rajpal
Copy link
Member

@sumukhah I am currently not working on this. Please give it a shot. :)

sumukhah added a commit to sumukhah/Rocket.Chat.ReactNative that referenced this issue Mar 13, 2021
diegolmello added a commit that referenced this issue Aug 27, 2021
* [FIX] Show button attachment in message list

fixes: #2684

* Changed the Button and theme, text theme and how to call the function

* Fix the props passed in Message

* Function to context

* Added button attachment to stories

* New snapshot

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
@thaild
Copy link

thaild commented Oct 4, 2022

I fixed this issue by change site url in Administration>General

Pls ensure the protocol and slash was included.

Ref: https://forums.rocket.chat/t/rocket-chat-cant-quote-messages-instead-it-shows-a-the-logo-and-url/8420/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants