From 180111a02e4688d00a8f9027daea6942714849d5 Mon Sep 17 00:00:00 2001 From: anavoi Date: Thu, 21 Aug 2025 22:53:24 +0200 Subject: [PATCH 1/2] Add shield icon when messaging in an encrypted room --- src/app/features/room/RoomInput.tsx | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/app/features/room/RoomInput.tsx b/src/app/features/room/RoomInput.tsx index 76bafc9..b00dee2 100644 --- a/src/app/features/room/RoomInput.tsx +++ b/src/app/features/room/RoomInput.tsx @@ -580,14 +580,27 @@ export const RoomInput = forwardRef( ) } before={ - pickFile('*')} - variant="SurfaceVariant" - size="300" - radii="300" - > - - + room.hasEncryptionStateEvent() ? + [ + pickFile('*')} + variant="SurfaceVariant" + size="300" + radii="300" + > + + , + , + ] : ( + < IconButton + onClick={() => pickFile('*')} + variant="SurfaceVariant" + size="300" + radii="300" + > + + + ) } after={ <> From f2e0d23c3084382cd1797a8f4284663bc8acc34a Mon Sep 17 00:00:00 2001 From: anavoi Date: Thu, 21 Aug 2025 22:53:40 +0200 Subject: [PATCH 2/2] Fix fallback messages --- src/app/components/message/content/FallbackContent.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/message/content/FallbackContent.tsx b/src/app/components/message/content/FallbackContent.tsx index 9edb967..d5c817b 100644 --- a/src/app/components/message/content/FallbackContent.tsx +++ b/src/app/components/message/content/FallbackContent.tsx @@ -20,28 +20,28 @@ export const MessageDeletedContent = as<'div', { children?: never; reason?: stri export const MessageUnsupportedContent = as<'div', { children?: never }>(({ ...props }, ref) => ( - Unsupported message + Unsupported message. )); export const MessageFailedContent = as<'div', { children?: never }>(({ ...props }, ref) => ( - Failed to load message + Failed to load message. )); export const MessageBadEncryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => ( - Unable to decrypt message + Unable to decrypt message. Please verify your session or restore your backup. )); export const MessageNotDecryptedContent = as<'div', { children?: never }>(({ ...props }, ref) => ( - This message is not decrypted yet + This message is not decrypted yet. Please wait. ));