diff --git a/src/app/features/room-nav/RoomNavItem.tsx b/src/app/features/room-nav/RoomNavItem.tsx index a8e35fbf..52303fc6 100644 --- a/src/app/features/room-nav/RoomNavItem.tsx +++ b/src/app/features/room-nav/RoomNavItem.tsx @@ -217,7 +217,6 @@ const RoomNavItemMenu = forwardRef( ); } ); -RoomNavItemMenu.displayName = 'RoomNavItemMenu'; type RoomNavItemProps = { room: Room; @@ -369,7 +368,6 @@ export function RoomNavItem({ size="100" joinRule={room.getJoinRule()} roomType={room.getType()} - locked={room.isCallRoom() && !canJoinCall} /> )} diff --git a/src/app/features/room-nav/RoomNavUser.tsx b/src/app/features/room-nav/RoomNavUser.tsx index 96795647..1d10218e 100644 --- a/src/app/features/room-nav/RoomNavUser.tsx +++ b/src/app/features/room-nav/RoomNavUser.tsx @@ -28,14 +28,14 @@ export function RoomNavUser({ room, callMembership }: RoomNavUserProps) { const avatarUrl = avatarMxcUrl ? mx.mxcUrlToHttp(avatarMxcUrl, 32, 32, 'crop', undefined, false, useAuthentication) : undefined; - const getName = getMemberDisplayName(room, userId) ?? getMxIdLocalPart(userId); + const name = getMemberDisplayName(room, userId) ?? getMxIdLocalPart(userId); const isCallParticipant = isActiveCall && userId !== mx.getUserId(); const handleNavUserClick: React.MouseEventHandler = (evt) => { openProfile(room.roomId, space?.roomId, userId, evt.currentTarget.getBoundingClientRect()); }; - const ariaLabel = isCallParticipant ? `Call Participant: ${getName}` : getName; + const ariaLabel = isCallParticipant ? `Call Participant: ${name}` : name; return ( @@ -47,12 +47,12 @@ export function RoomNavUser({ room, callMembership }: RoomNavUserProps) { } /> - {getName} + {name} diff --git a/src/app/pages/client/space/Space.tsx b/src/app/pages/client/space/Space.tsx index 591be026..98f12d16 100644 --- a/src/app/pages/client/space/Space.tsx +++ b/src/app/pages/client/space/Space.tsx @@ -298,7 +298,7 @@ function SpaceHeader() { escapeDeactivates: stopPropagation, }} > - {space && setMenuAnchor(undefined)} />} + setMenuAnchor(undefined)} /> } />