From afe6021c9a06112874a60139e00bd8d16e5dbc79 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 1 Feb 2022 10:17:55 +0000 Subject: [PATCH] Ensure UserInfo can be rendered without a room (#7687) Co-authored-by: David Baker --- src/components/views/right_panel/UserInfo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/right_panel/UserInfo.tsx b/src/components/views/right_panel/UserInfo.tsx index a79e382401..86c5928721 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