From 79c8c986eefa5bb2b3fbfd7533019ad0cb9dc60f Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 23 May 2026 13:21:12 -0400 Subject: [PATCH] fix: show verification badges regardless of room encryption state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spaces and unencrypted rooms have hasEncryptionStateEvent() = false, causing all badges to be hidden. Cross-signing verification is a user identity property, not room-specific — show badges whenever crossSigningActive, keep the E2EE banner gated on isEncrypted. Co-Authored-By: Claude Sonnet 4.6 --- src/app/components/user-profile/UserRoomProfile.tsx | 2 +- src/app/features/common-settings/members/Members.tsx | 2 +- src/app/features/room/MembersDrawer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/user-profile/UserRoomProfile.tsx b/src/app/components/user-profile/UserRoomProfile.tsx index c5652a746..cb6f6ec4f 100644 --- a/src/app/components/user-profile/UserRoomProfile.tsx +++ b/src/app/components/user-profile/UserRoomProfile.tsx @@ -38,7 +38,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) { const ignored = ignoredUsers.includes(userId); const room = useRoom(); - const showEncryption = room.hasEncryptionStateEvent() && crossSigningActive; + const showEncryption = crossSigningActive; const powerLevels = usePowerLevels(room); const creators = useRoomCreators(room); diff --git a/src/app/features/common-settings/members/Members.tsx b/src/app/features/common-settings/members/Members.tsx index d3ec7e167..37fe57c02 100644 --- a/src/app/features/common-settings/members/Members.tsx +++ b/src/app/features/common-settings/members/Members.tsx @@ -82,7 +82,7 @@ export function Members({ requestClose }: MembersProps) { const room = useRoom(); const members = useRoomMembers(mx, room.roomId); const crossSigningActive = useCrossSigningActive(); - const showEncryption = room.hasEncryptionStateEvent() && crossSigningActive; + const showEncryption = crossSigningActive; const fetchingMembers = members.length < room.getJoinedMemberCount(); const openProfile = useOpenUserRoomProfile(); const profileUser = useUserRoomProfileState(); diff --git a/src/app/features/room/MembersDrawer.tsx b/src/app/features/room/MembersDrawer.tsx index b7eb06c1c..426505666 100644 --- a/src/app/features/room/MembersDrawer.tsx +++ b/src/app/features/room/MembersDrawer.tsx @@ -190,7 +190,7 @@ export function MembersDrawer({ room, members }: MembersDrawerProps) { const useAuthentication = useMediaAuthentication(); const isEncrypted = room.hasEncryptionStateEvent(); const crossSigningActive = useCrossSigningActive(); - const showEncryption = isEncrypted && crossSigningActive; + const showEncryption = crossSigningActive; const scrollRef = useRef(null) as React.RefObject; const searchInputRef = useRef(null) as React.RefObject; const scrollTopAnchorRef = useRef(null) as React.RefObject;