From 96622cbe09df1416b69fc92e4cc18b6e0fb08ffd Mon Sep 17 00:00:00 2001 From: "Specht, David" Date: Thu, 7 Apr 2022 13:56:26 +0200 Subject: [PATCH] fix: cloned room didn't get new moderatorToken assigned --- ts/Manager/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts/Manager/App.tsx b/ts/Manager/App.tsx index d837924..8073591 100644 --- a/ts/Manager/App.tsx +++ b/ts/Manager/App.tsx @@ -127,6 +127,11 @@ const App: React.FC = () => { } 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;