Open tomonorisugiura opened 5 years ago
Hi, I would like to clarify that this is not the side-effect of the PR as you had pointed at the end.
This seems to be an side effect of #13053
This is resulting because Rocketchat's update-message only lets the text of the message to be updated and not anything else.
Thanks you for comment.
https://rocket.chat/docs/developer-guides/realtime-api/method-calls/update-message/
In the above document,
The only parameter that needs to be passed in is the Message Object which contains the updated message properties, such as the text.
So, I think updateMessage should handle update in any portion of a message, not only text...
Description:
I use updateMessage via Rocket.Chat.sdk to update existing message. A message has text in msg field with 1 button. If I try to add 2nd button to the message without updating text in msg filed, nothing to occur.
Steps to reproduce:
I created an example code.
After calling updateMessage, the message is not updated if I did not change msg.
Expected behavior:
The message is updated even if only attachments field has been changed.
Actual behavior:
If changes are only in attachments field, updateMessage does not update message.
Server Setup Information:
Additional context
This seems to be an side effect of https://github.com/RocketChat/Rocket.Chat/pull/13053