Browse Source

feat: replace message event

Michael Poluektov 10 tháng trước cách đây
mục cha
commit
540a669dae
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/lib/components/chat/Chat.svelte

+ 2 - 0
src/lib/components/chat/Chat.svelte

@@ -161,6 +161,8 @@
 				}
 			} else if (type === 'message') {
 				message.content += data.content;
+		  } else if (type === 'replace') {
+		    message.content = data.content;
 			} else if (type === 'confirmation') {
 				eventCallback = cb;