The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/views/room/Room/RoomWithData.js

16 lines
344 B

import React from 'react';
import { useOpenedRoom } from '../../../lib/RoomManager';
import RoomProvider from '../providers/RoomProvider';
import Room from './Room';
const RoomWithData = () => {
const rid = useOpenedRoom();
return rid ? (
<RoomProvider rid={rid}>
<Room />
</RoomProvider>
) : null;
};
export default RoomWithData;