It seems like there are two sets of scopes for a message.
- messages from user-managed via api - you can edit via api
- messages from logged in user in chat - you can’t edit via api
Below is the result of /chat/users/{userId}/messages
{
"messages": [
{
## messages from user-managed via api
"date_time": "2020-05-28T02:08:45Z",
"id": "945c6655-68e3-4558-a3ab-51fd50198798",
"message": "It's a beautiful day.",
"sender": "******@***.com",
"timestamp": 1590631725774
},
## messages from logged in user in chat
{
"date_time": "2020-05-28T02:04:40Z",
"id": "{AF57AB11-27E0-4A07-85E3-CB1B77924F35}",
"message": "111-11-1111",
"timestamp": 1590631480786
}
The issue
When we try to update the id {AF57AB11-27E0-4A07-85E3-CB1B77924F35}
it gives the following error:
{
"code": 200,
"message": "Only the sender of this message can make updates."
}
What is expected:
A user who has given chat_message:write
to an app should have the ability to modify their messages in chat.