discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.js
Roman Rizzi 1588ab99a6
FIX: ChatChannel no longer inherits from RestModel. (#292)
Trying to hydrate using the store will fail. We need to use the model create function instead.
2023-11-13 14:45:20 -03:00

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);
}
}