Compare commits
2 commits
eb5e2b61c0
...
f2e0d23c30
| Author | SHA1 | Date | |
|---|---|---|---|
| f2e0d23c30 | |||
| 180111a02e |
2 changed files with 25 additions and 12 deletions
|
|
@ -20,28 +20,28 @@ export const MessageDeletedContent = as<'div', { children?: never; reason?: stri
|
||||||
export const MessageUnsupportedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
export const MessageUnsupportedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
||||||
<Box as="span" alignItems="Center" gap="100" style={criticalStyle} {...props} ref={ref}>
|
<Box as="span" alignItems="Center" gap="100" style={criticalStyle} {...props} ref={ref}>
|
||||||
<Icon size="50" src={Icons.Warning} />
|
<Icon size="50" src={Icons.Warning} />
|
||||||
<i>Unsupported message</i>
|
<i>Unsupported message.</i>
|
||||||
</Box>
|
</Box>
|
||||||
));
|
));
|
||||||
|
|
||||||
export const MessageFailedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
export const MessageFailedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
||||||
<Box as="span" alignItems="Center" gap="100" style={criticalStyle} {...props} ref={ref}>
|
<Box as="span" alignItems="Center" gap="100" style={criticalStyle} {...props} ref={ref}>
|
||||||
<Icon size="50" src={Icons.Warning} />
|
<Icon size="50" src={Icons.Warning} />
|
||||||
<i>Failed to load message</i>
|
<i>Failed to load message.</i>
|
||||||
</Box>
|
</Box>
|
||||||
));
|
));
|
||||||
|
|
||||||
export const MessageBadEncryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
export const MessageBadEncryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
||||||
<Box as="span" alignItems="Center" gap="100" style={warningStyle} {...props} ref={ref}>
|
<Box as="span" alignItems="Center" gap="100" style={warningStyle} {...props} ref={ref}>
|
||||||
<Icon size="50" src={Icons.Lock} />
|
<Icon size="50" src={Icons.Lock} />
|
||||||
<i>Unable to decrypt message</i>
|
<i>Unable to decrypt message. Please verify your session or restore your backup.</i>
|
||||||
</Box>
|
</Box>
|
||||||
));
|
));
|
||||||
|
|
||||||
export const MessageNotDecryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
export const MessageNotDecryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => (
|
||||||
<Box as="span" alignItems="Center" gap="100" style={warningStyle} {...props} ref={ref}>
|
<Box as="span" alignItems="Center" gap="100" style={warningStyle} {...props} ref={ref}>
|
||||||
<Icon size="50" src={Icons.Lock} />
|
<Icon size="50" src={Icons.Lock} />
|
||||||
<i>This message is not decrypted yet</i>
|
<i>This message is not decrypted yet. Please wait.</i>
|
||||||
</Box>
|
</Box>
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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