Skip to content

Commit

Permalink
Add comment about unused cases in RoomPreviewCard
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown committed May 4, 2022
1 parent 060f217 commit 26d23c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/views/rooms/RoomPreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ interface IProps {
onRejectButtonClicked: () => void;
}

// XXX This component is currently only used for spaces and video rooms, though
// surely we should expand its use to all rooms for consistency? This already
// handles the text room case, though we would need to add support for ignoring
// and viewing invite reasons to achieve parity with the default invite screen.
const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButtonClicked }) => {
const cli = useContext(MatrixClientContext);
const videoRoomsEnabled = useFeatureEnabled("feature_video_rooms");
Expand Down

0 comments on commit 26d23c2

Please sign in to comment.