mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
FEATURE: Create a link to start a new chat (#25722)
This feature adds the functionality to start a new chat directly from the URL using query params. The format is: /chat/new-message?recipients=buford,jona The initial version of this feature allows for the following: - Open an existing direct message channel with a single user - Create a new direct message channel with a single user (and auto redirect) - Create or open a channel with multiple users (and auto redirect) - Redirects to chat home if the recipients param is missing
This commit is contained in:
@ -75,6 +75,7 @@ Chat::Engine.routes.draw do
|
||||
|
||||
# chat_controller routes
|
||||
get "/" => "chat#respond"
|
||||
get "/new-message" => "chat#respond"
|
||||
get "/direct-messages" => "chat#respond"
|
||||
get "/channels" => "chat#respond"
|
||||
get "/threads" => "chat#respond"
|
||||
|
Reference in New Issue
Block a user