fix(chat): render cached history before network sync
This commit is contained in:
@@ -22,6 +22,15 @@ export type ChatEvent =
|
||||
| { type: "ChatGuestLogin" }
|
||||
| { type: "ChatUserLogin"; token: string }
|
||||
| { type: "ChatLogout" }
|
||||
| {
|
||||
type: "ChatLocalHistoryLoaded";
|
||||
output: import("./chat-history-sync").LocalHistorySnapshotOutput;
|
||||
}
|
||||
| {
|
||||
type: "ChatNetworkHistoryLoaded";
|
||||
output: import("./chat-history-sync").NetworkHistorySyncOutput;
|
||||
}
|
||||
| { type: "ChatHistoryLoadFailed"; error: unknown }
|
||||
// 业务事件
|
||||
| { type: "ChatSendMessage"; content: string }
|
||||
| { type: "ChatSendImage"; imageBase64: string }
|
||||
|
||||
Reference in New Issue
Block a user