forked from github/cinny
Hide message button from own profile (#2461)
This commit is contained in:
@@ -95,6 +95,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
|
|||||||
<Box direction="Column" gap="400">
|
<Box direction="Column" gap="400">
|
||||||
<Box gap="400" alignItems="Start">
|
<Box gap="400" alignItems="Start">
|
||||||
<UserHeroName displayName={displayName} userId={userId} />
|
<UserHeroName displayName={displayName} userId={userId} />
|
||||||
|
{userId !== myUserId && (
|
||||||
<Box shrink="No">
|
<Box shrink="No">
|
||||||
<Button
|
<Button
|
||||||
size="300"
|
size="300"
|
||||||
@@ -114,6 +115,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
|
|||||||
<Text size="B300">Message</Text>
|
<Text size="B300">Message</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
{directMessageState.status === AsyncStatus.Error && (
|
{directMessageState.status === AsyncStatus.Error && (
|
||||||
<Text style={{ color: color.Critical.Main }}>
|
<Text style={{ color: color.Critical.Main }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user