fix: cloned room didn't get new moderatorToken assigned

pull/203/head
Specht, David 2022-04-07 13:56:26 +02:00
parent f2a19fb8e6
commit 96622cbe09
1 changed files with 5 additions and 0 deletions

View File

@ -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;