mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-13 22:32:26 +03:00
Hide message button from own profile (#2461)
This commit is contained in:
parent
13cdcbcdb1
commit
4056cbb11c
1 changed files with 21 additions and 19 deletions
|
@ -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 }}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue