mattermost / mattermost-plugin-calls

https://www.mattermost.com
Other
96 stars 50 forks source link

Executing '/call start' Command API Does Not Initiate Call in Private Channel #509

Closed yiruchen1993 closed 1 year ago

yiruchen1993 commented 1 year ago

Per Mattermost guidelines, GitHub issues are for bug reports: https://handbook.mattermost.com/contributors/contributors/ways-to-contribute/.

For troubleshooting see: https://forum.mattermost.com/. For feature proposals see: https://mattermost.com/suggestions/

If you've found a bug--something appears unintentional--please follow these steps:

  1. Confirm you’re filing a new issue. Search existing tickets in Jira to ensure that the ticket does not already exist.
  2. Confirm your issue does not involve security. Otherwise, please see our Responsible Disclosure Policy.
  3. File a new issue using the format below. Mattermost will confirm steps to reproduce and file in Jira, or ask for more details if there is trouble reproducing it. If there's already an existing bug in Jira, it will be linked back to the GitHub issue so you can track when it gets fixed.

Summary

While utilizing the "Execute a command" API to trigger '/call start', I successfully receive a status code of 200. However, the expected outcome of initiating a call in a private channel does not occur.

Steps to reproduce

Server URL: https://community.mattermost.com version from my mobile app:

  1. Create a private channel.
  2. Execute the login API to obtain an authentication token.
  3. Utilize the "Execute a command" API with the following payload:
    {
      "channel_id": "the-private-channel-d",
      "command": "/call start"
    }

Expected behavior

The anticipated behavior is for a call to initiate within the private channel.

Observed behavior (that appears unintentional)

Currently, no action takes place within the private channel. Despite receiving a status code of 200, the response appears as follows:

{
    "response_type": "",
    "text": "",
    "username": "",
    "channel_id": "",
    "icon_url": "",
    "type": "",
    "props": null,
    "goto_location": "",
    "trigger_id": "c63ihapk7brqfxajnr37d5g5kc",
    "skip_slack_parsing": false,
    "attachments": null,
    "extra_responses": null
}

Additionally, I attempted the same process with a direct message channel_id, which resulted in a 403 status code, even when using simpler commands such as "/echo test".

Possible fixes

yiruchen1993 commented 1 year ago

same as https://github.com/mattermost/mattermost-plugin-calls/issues/309