auto join the room
This commit is contained in:
@@ -98,6 +98,12 @@ export default function CreateOrUpdateRoomModal(props: IModalProps) {
|
|||||||
// make sure approximate time isn't selected
|
// make sure approximate time isn't selected
|
||||||
newRoom.approximateDateTime = null;
|
newRoom.approximateDateTime = null;
|
||||||
newRoom.status = RoomStatus.live;
|
newRoom.status = RoomStatus.live;
|
||||||
|
|
||||||
|
// automatically add me to the room
|
||||||
|
newRoom.membersInRoom = [currUser.uid];
|
||||||
|
|
||||||
|
// navigate to the new room automatically
|
||||||
|
window.open(roomLink, "_blank");
|
||||||
} else if (roomType == RoomType.scheduled) {
|
} else if (roomType == RoomType.scheduled) {
|
||||||
// make sure that either appx or time picker is selected, not both
|
// make sure that either appx or time picker is selected, not both
|
||||||
if (!dateTimePicker) {
|
if (!dateTimePicker) {
|
||||||
|
|||||||
Reference in New Issue
Block a user