hide message button from own profile

This commit is contained in:
Ajay Bura 2025-08-23 19:59:57 +05:30
parent 78a0d11f24
commit 19db9cf074

View file

@ -95,6 +95,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
<Box direction="Column" gap="400">
<Box gap="400" alignItems="Start">
<UserHeroName displayName={displayName} userId={userId} />
{userId !== myUserId && (
<Box shrink="No">
<Button
size="300"
@ -114,6 +115,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
<Text size="B300">Message</Text>
</Button>
</Box>
)}
</Box>
{directMessageState.status === AsyncStatus.Error && (
<Text style={{ color: color.Critical.Main }}>