소스 검색

Merge pull request #3825 from michaelpoluektov/replace-message-event

feat: Replace message event
Timothy Jaeryang Baek 10 달 전
부모
커밋
a049b38ab5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;