Skip to content

Commit

Permalink
fix: userMeta设置backgroundColor 不生效的问题 (#295)
Browse files Browse the repository at this point in the history
userMeta 设置 backgroundColor 无效
  • Loading branch information
fisher-zh authored Aug 9, 2024
1 parent 635aa78 commit 4a0b820
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ProChat/store/selectors/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ 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 4a0b820

Please sign in to comment.