From 4efbf4718fb18e86b78266c09aa748f58582702b Mon Sep 17 00:00:00 2001 From: Shinji-Li <1349021570@qq.com> Date: Fri, 9 Aug 2024 17:19:07 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20userMeta=E8=AE=BE=E7=BD=AEback?= =?UTF-8?q?groundColor=20=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#295)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4a0b82051804a6fad2b0da10bcc9bce3ede51933. --- src/ProChat/store/selectors/chat.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ProChat/store/selectors/chat.ts b/src/ProChat/store/selectors/chat.ts index cdf24e9..e1bf1c0 100644 --- a/src/ProChat/store/selectors/chat.ts +++ b/src/ProChat/store/selectors/chat.ts @@ -13,13 +13,11 @@ export const currentChats = (s: ChatStore): ChatMessage[] => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { avatar, title, backgroundColor, ...rest } = s.userMeta; const assistant = s.assistantMeta; - const user = s.userMeta; switch (message?.role) { case 'user': { return { avatar, title, - backgroundColor: user?.backgroundColor, ...rest, }; }