|
|
|
@@ -16,6 +16,7 @@ import { useClickDrawer } from '@/components/pdf-drawer/hooks'; |
|
|
|
import { |
|
|
|
useFetchNextConversation, |
|
|
|
useGetChatSearchParams, |
|
|
|
useFetchNextDialog, |
|
|
|
} from '@/hooks/chat-hooks'; |
|
|
|
import { useFetchUserInfo } from '@/hooks/user-setting-hooks'; |
|
|
|
import { buildMessageUuidWithRole } from '@/utils/chat'; |
|
|
|
@@ -29,6 +30,8 @@ interface IProps { |
|
|
|
const ChatContainer = ({ controller }: IProps) => { |
|
|
|
const { conversationId } = useGetChatSearchParams(); |
|
|
|
const { data: conversation } = useFetchNextConversation(); |
|
|
|
const { data: currentDialog } = useFetchNextDialog(); |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
value, |
|
|
|
@@ -70,7 +73,7 @@ const ChatContainer = ({ controller }: IProps) => { |
|
|
|
item={message} |
|
|
|
nickname={userInfo.nickname} |
|
|
|
avatar={userInfo.avatar} |
|
|
|
avatarDialog={conversation.avatar} |
|
|
|
avatarDialog={currentDialog.icon} |
|
|
|
reference={buildMessageItemReference( |
|
|
|
{ |
|
|
|
message: derivedMessages, |