Skip to content

Commit

Permalink
Revert "fix: userMeta设置backgroundColor 不生效的问题 (#295)" (#298)
Browse files Browse the repository at this point in the history
This reverts commit 4a0b820.
  • Loading branch information
ONLY-yours authored Aug 9, 2024
1 parent 427e4c9 commit 95527a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ProChat/store/selectors/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
Expand Down

0 comments on commit 95527a5

Please sign in to comment.