mirror of https://github.com/sualko/cloud_bbb
fix: shares didn't get cloned
parent
96622cbe09
commit
506ffa2c91
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue