mirror of https://github.com/sualko/cloud_bbb
fix: cloned room didn't get new moderatorToken assigned
parent
f2a19fb8e6
commit
96622cbe09
|
@ -127,6 +127,11 @@ const App: React.FC<Props> = () => {
|
|||
}
|
||||
|
||||
function cloneRoom(room: Room) {
|
||||
|
||||
if (room.moderatorToken !== null) {
|
||||
room.moderatorToken = 'true';
|
||||
}
|
||||
|
||||
return api.createRoom(room.name, room.access, room.maxParticipants).then(newRoom => {
|
||||
room.uid = newRoom.uid;
|
||||
room.id = newRoom.id;
|
||||
|
|
Loading…
Reference in New Issue