Skip to content

Commit

Permalink
Merge pull request #582 from RobzLegz/569-load-rooms
Browse files Browse the repository at this point in the history
569 load rooms
  • Loading branch information
RobzLegz authored Nov 18, 2021
2 parents cd634e8 + 5df5356 commit 2a99a15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/containers/rooms/RoomContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ const RoomContainer: React.FC = () => {
if(!socketInfo.connected || !socket){
dispatch(setSocket(true));
}else{
socket.emit("requestUsers");

socket.on("getRooms", (rooms: Room[]) => {
rooms.forEach((room) => {
dispatch(addRoom(room));
Expand Down

0 comments on commit 2a99a15

Please sign in to comment.