feat(wip): 拉取历史消息

This commit is contained in:
CrescentLeaf
2026-01-09 00:44:53 +08:00
parent 6bfa1bf6b7
commit 922791a0f5

View File

@@ -44,10 +44,21 @@ export default function ChatFragment({
const inputRef = React.useRef<TextField>() const inputRef = React.useRef<TextField>()
const chatPagePanelRef = React.useRef<ChatPanelRef>() const chatPagePanelRef = React.useRef<ChatPanelRef>()
/**
* 发送消息, 成功则清空文本
*/
async function performSendMessage() { async function performSendMessage() {
await chatInfo.sendMessageOrThrow(inputRef.current!.value) await chatInfo.sendMessageOrThrow(inputRef.current!.value)
inputRef.current!.value = '' inputRef.current!.value = ''
} }
/**
* 拉取更多消息
* 本质是修改获取的偏移?
* WIP
*/
async function pullMoreMessages() {
}
return ( return (
<div style={{ <div style={{