discourse/plugins/chat/test/javascripts
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
..
acceptance FEATURE: extend chat/new-message with prefilling text api (#40007) 2026-05-18 13:43:39 -03:00
components DEV: Remove obsolete chat code and tests (#39451) 2026-04-22 21:33:17 +02:00
helpers DEV: Remove unused chat pretender (#39405) 2026-04-21 12:43:14 +01:00
integration DEV: Update Ember to 6.6.0 (#34460) 2025-08-27 16:48:40 +01:00
unit DEV: Remove obsolete chat code and tests (#39451) 2026-04-22 21:33:17 +02:00
chat-fixtures.js DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00