fix: DM preview shows message body for E2EE rooms; filter inputs match members panel style

- RoomNavItem: change isEncrypted() to isDecryptionFailure() so DM
  previews show actual message body for successfully decrypted E2EE
  events instead of always showing 'Encrypted message'
- Home.tsx / Direct.tsx: upgrade filter inputs to size 400 / radii 400
  with search icon prefix to match the members list search bar style

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 00:39:39 -04:00
parent ed67641dd5
commit 3cbc5112a7
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ function RoomNavItem_({
// Skip pure membership events
if (type === StateEvent.RoomMember) return null;
let body: string;
if (latestEvent.isEncrypted()) {
if (latestEvent.isDecryptionFailure()) {
body = 'Encrypted message';
} else if (type === MessageEvent.Sticker) {
body = 'Sticker';