diff --git a/src/components/views/right_panel/UserInfo.tsx b/src/components/views/right_panel/UserInfo.tsx index a79e3824011..86c59287216 100644 --- a/src/components/views/right_panel/UserInfo.tsx +++ b/src/components/views/right_panel/UserInfo.tsx @@ -1518,7 +1518,7 @@ export type Member = User | RoomMember | GroupMember; const UserInfoHeader: React.FC<{ member: Member; e2eStatus: E2EStatus; - roomId: string; + roomId?: string; }> = ({ member, e2eStatus, roomId }) => { const cli = useContext(MatrixClientContext); const statusMessage = useUserStatusMessage(member); @@ -1710,7 +1710,7 @@ const UserInfo: React.FC = ({ const header = { scopeHeader } - + ; return