updating to have statuses for rooms
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user