fix: profile component cid param

This commit is contained in:
Tristan Yang
2022-08-08 08:57:47 +08:00
parent 3e58da22af
commit 3dc11b9f5b
+1 -1
View File
@@ -100,7 +100,7 @@ const Message: FC<IProps> = ({
interactive
placement="right"
trigger="click"
content={<Profile uid={fromUid || 0} type="card" cid={contextId} />}
content={<Profile uid={fromUid || 0} type="card" cid={context == "user" ? 0 : contextId} />}
>
<div className="avatar" data-uid={fromUid} ref={avatarRef}>
<Avatar url={currUser?.avatar} name={currUser?.name} />