Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Check for missing a room
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Feb 1, 2023
1 parent ab1f6b6 commit 9b1ae17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/views/messages/RoomCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const RoomCreate: React.FC<IProps> = ({ mxEvent, timestamp }) => {
}

const prevRoom = MatrixClientPeg.get().getRoom(predecessor.roomId);
if (!prevRoom) {
logger.warn(`Failed to find predecessor room with id ${predecessor.roomId}`);
return <></>;
}
const permalinkCreator = new RoomPermalinkCreator(prevRoom, predecessor.roomId);
permalinkCreator.load();
let predecessorPermalink: string;
Expand Down

0 comments on commit 9b1ae17

Please sign in to comment.