feat(wip): 拉取历史消息
This commit is contained in:
@@ -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={{
|
||||||
|
|||||||
Reference in New Issue
Block a user