web/rightpanel: don't show ignore button for self

This commit is contained in:
Tulir Asokan 2025-01-24 01:15:07 +02:00
parent fabf3404af
commit 865b2e4fdf

View file

@ -72,14 +72,14 @@ const UserInfo = ({ userID }: UserInfoProps) => {
profile={globalProfile} refreshProfile={refreshProfile} client={client} userID={userID}
/>}
<hr/>
<DeviceList client={client} room={roomCtx?.store} userID={userID}/>
<hr/>
{userID !== client.userID && <>
<MutualRooms client={client} userID={userID}/>
<hr/>
<UserModeration client={client} room={roomCtx?.store} member={memberEvt} userID={userID}/>
<hr/>
</>}
<DeviceList client={client} room={roomCtx?.store} userID={userID}/>
<hr/>
<UserModeration client={client} room={roomCtx?.store} member={memberEvt} userID={userID}/>
<hr/>
{errors?.length ? <>
<UserInfoError errors={errors}/>
<hr/>