mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
Trying to hydrate using the store will fail. We need to use the model create function instead.
9 lines
284 B
JavaScript
9 lines
284 B
JavaScript
import Component from "@glimmer/component";
|
|
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";
|
|
|
|
export default class ReviewableAiChatMessage extends Component {
|
|
get chatChannel() {
|
|
return ChatChannel.create(this.args.reviewable.chat_channel);
|
|
}
|
|
}
|