discourse/plugins/chat/test/javascripts/acceptance
Gabriel Grubba a0e3c05a50
FEATURE: extend chat/new-message with prefilling text api (#40007)
Previously, `/chat/new-message` only accepted a `recipients` param to
open a new direct message, with no way to send a message to an existing
channel or pre-fill the composer.

This change adds `channel_id`, `channel` (slug), and `message` params so
external links can drop a user into the right conversation with the
composer ready to send. Currently supported combinations:

  - `/chat/new-message?channel_id=42&message=hi`
  - `/chat/new-message?channel=general&message=hi`
  - `/chat/new-message?recipients=alice,bob`
  - `/chat/new-message?recipients=alice&message=hi`

If both `channel_id`/`channel` and `recipients` are passed, the channel
param wins and `recipients` is ignored.

---------

Co-authored-by: discourse-patch-triage[bot] <272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-05-18 13:43:39 -03:00
..
chat-channel-reactions-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-email-preferences-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-retry-test.js DEV: Remove obsolete chat code and tests (#39451) 2026-04-22 21:33:17 +02:00
chat-new-message-test.js FEATURE: extend chat/new-message with prefilling text api (#40007) 2026-05-18 13:43:39 -03:00
hashtag-css-generator-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00