fix: show verification badges regardless of room encryption state
CI / Build & Quality Checks (push) Successful in 10m35s

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 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 13:21:12 -04:00
parent 2f7f933350
commit 79c8c986ee
3 changed files with 3 additions and 3 deletions
@@ -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);
@@ -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();
+1 -1
View File
@@ -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<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;
const searchInputRef = useRef<HTMLInputElement>(null) as React.RefObject<HTMLInputElement>;
const scrollTopAnchorRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;