feat(characters): support character-scoped conversations
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
import { useCachedChatMediaUrl } from "@/lib/chat/use_cached_chat_media_url";
|
||||
|
||||
export interface ChatMediaImageProps {
|
||||
characterId: string;
|
||||
messageId?: string;
|
||||
remoteUrl: string;
|
||||
alt?: string;
|
||||
@@ -28,6 +29,7 @@ export interface ChatMediaImageProps {
|
||||
}
|
||||
|
||||
export function ChatMediaImage({
|
||||
characterId,
|
||||
messageId,
|
||||
remoteUrl,
|
||||
alt = "",
|
||||
@@ -45,6 +47,7 @@ export function ChatMediaImage({
|
||||
const [errorSrc, setErrorSrc] = useState<string | null>(null);
|
||||
const { mediaUrl, isUsingCachedMedia, reportMediaError } =
|
||||
useCachedChatMediaUrl({
|
||||
characterId,
|
||||
messageId,
|
||||
remoteUrl,
|
||||
kind: "image",
|
||||
|
||||
Reference in New Issue
Block a user