updating to have statuses for rooms

This commit is contained in:
Arjun Patel
2022-01-17 15:46:28 -08:00
parent 9beb53fa8f
commit 5655df9391
6 changed files with 52 additions and 8 deletions
+5 -1
View File
@@ -7,7 +7,7 @@ import {
useKeyboardContext,
} from "../../contexts/keyboardContext";
import { useTeamDashboardContext } from "../../contexts/teamDashboardContext";
import Room, { RoomType } from "../../models/room";
import Room, { RoomStatus, RoomType } from "../../models/room";
import RoomService from "../../services/roomService";
const { Option } = Select;
@@ -46,6 +46,10 @@ export default function CreateRoomModal() {
newRoom.attachments = [roomAttachment];
}
if (roomType == RoomType.now) {
newRoom.status = RoomStatus.live;
}
newRoom.approximateDateTime = roomAppxDateTime;
newRoom.link = roomLink;
newRoom.members = [...membersSelected, currUser.uid]; // add currUser to the list of "people"