fix: shares didn't get cloned

pull/203/head
Specht, David 2022-04-07 15:52:57 +02:00
parent 96622cbe09
commit 506ffa2c91
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ const App: React.FC<Props> = () => {
}
return api.createRoom(room.name, room.access, room.maxParticipants).then(newRoom => {
api.getRoomShares(room.id).then(shares => shares.forEach(share => {
api.createRoomShare(newRoom.id, share.shareType, share.shareWith, share.permission);
}))
room.uid = newRoom.uid;
room.id = newRoom.id;
updateRoom(room);