Do interactive messages work in direct message channels?
While I can use the APIs to create interactive messages (ie. those with buttons/menus) in both public and direct message channels, Mattermost does not send an event to my integration endpoint when I click on a button in the direct message channel.
The message I create is the same in each one, something like this:
{
"channel_id": "{THE CHANNEL ID}",
"props": {
"attachments": [
{
"actions": [
{
"name": "Click me",
"integration": {
"url": "http://host.docker.internal:8080/mattermost",
"context": {
"message": "Context message"
}
}
}
],
"text": "A button to click"
}
]
}
}
I can send this message to both a public channel or a direct message channel. It renders as expected in both.
When I click on the message in the public channel, I get a call to my server. However, when I click on the message in the direct message channel, I get nothing.
I haven’t found anything in the documentation (or this forum) that indicates whether this should work or not. Am I missing something?
Thanks.