Merge pull request #2198 from YBY2020/main

perf : 代码细节优化
This commit is contained in:
Yifei Zhang
2023-06-30 14:35:41 +08:00
committed by GitHub

View File

@@ -922,7 +922,7 @@ export function Chat() {
}}
></IconButton>
</div>
{message.role === "user" ? (
{isUser ? (
<Avatar avatar={config.avatar} />
) : (
<MaskAvatar mask={session.mask} />