mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 16:43:11 +08:00
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> |
||
|---|---|---|
| .. | ||
| chat-channel-reactions-test.js | ||
| chat-email-preferences-test.js | ||
| chat-message-retry-test.js | ||
| chat-new-message-test.js | ||
| hashtag-css-generator-test.js | ||