Skip to content

Commit 6e030e8

Browse files
committed
refac
1 parent 5fe525b commit 6e030e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/lib/components/chat/Chat.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,14 @@
612612
613613
if (event.chat_id === $chatId) {
614614
await tick();
615+
const type = event?.data?.type ?? null;
616+
if (type === 'chat:reload') {
617+
await loadChat();
618+
return;
619+
}
615620
let message = history.messages[event.message_id];
616621
617622
if (message) {
618-
const type = event?.data?.type ?? null;
619623
const data = event?.data?.data ?? null;
620624
621625
if (type === 'status') {

0 commit comments

Comments
 (0)