mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
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
6 lines
146 B
JavaScript
6 lines
146 B
JavaScript
import Controller from "@ember/controller";
|
|
|
|
export default class ChatNewMessageController extends Controller {
|
|
queryParams = ["recipients"];
|
|
}
|