Skip to content

Commit 93daafc

Browse files
authored
feat(chat-view/message): add ProfileCardHover to chat message avatars (#3079)
1 parent cd8315d commit 93daafc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/message/index.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { useMatrixMedia } from '../../lib/hooks/useMatrixMedia';
3030
import { MatrixAvatar } from '../matrix-avatar';
3131
import { useLinkPreview } from '../../lib/hooks/useLinkPreview';
3232
import { ProfileLinkNavigation } from '../profile-link-navigation';
33+
import { ProfileCardHover } from '../../components/profile-card/hover';
3334

3435
import './styles.scss';
3536

@@ -436,7 +437,14 @@ export const Message: React.FC<Properties> = memo(
436437
primaryZid={sender.primaryZID}
437438
thirdWebAddress={sender.wallets?.find((wallet) => wallet.isThirdWeb)?.publicAddress}
438439
>
439-
<MatrixAvatar size='medium' imageURL={sender.profileImage} tabIndex={-1} />
440+
<ProfileCardHover
441+
userId={
442+
sender.primaryZID?.replace('0://', '') ??
443+
sender.wallets?.find((wallet) => wallet.isThirdWeb)?.publicAddress
444+
}
445+
>
446+
<MatrixAvatar size='medium' imageURL={sender.profileImage} tabIndex={-1} />
447+
</ProfileCardHover>
440448
</ProfileLinkNavigation>
441449
</div>
442450
</div>

0 commit comments

Comments
 (0)