Add shield icon when messaging in an encrypted room
This commit is contained in:
parent
eb5e2b61c0
commit
180111a02e
1 changed files with 21 additions and 8 deletions
|
|
@ -580,6 +580,8 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
before={
|
before={
|
||||||
|
room.hasEncryptionStateEvent() ?
|
||||||
|
[
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={() => pickFile('*')}
|
onClick={() => pickFile('*')}
|
||||||
variant="SurfaceVariant"
|
variant="SurfaceVariant"
|
||||||
|
|
@ -587,7 +589,18 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||||
radii="300"
|
radii="300"
|
||||||
>
|
>
|
||||||
<Icon src={Icons.PlusCircle} />
|
<Icon src={Icons.PlusCircle} />
|
||||||
|
</IconButton>,
|
||||||
|
<Icon src={Icons.ShieldLock} />,
|
||||||
|
] : (
|
||||||
|
< IconButton
|
||||||
|
onClick={() => pickFile('*')}
|
||||||
|
variant="SurfaceVariant"
|
||||||
|
size="300"
|
||||||
|
radii="300"
|
||||||
|
>
|
||||||
|
<Icon src={Icons.PlusCircle} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
after={
|
after={
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue