Skip to content

Commit

Permalink
Fix roomNew to support tabs in protected room with secret (fix #157)
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Mar 16, 2021
1 parent 1216109 commit 2e4d6b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rooms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Meteor.methods
url: Match.Optional Match.Where checkURL
archived: Match.Optional Boolean
]
secret = room.secret # gets deleted by roomCheckSecret
## Check tabs for validity
tabs = room.tabs ? []
delete room.tabs
Expand All @@ -73,6 +74,8 @@ Meteor.methods
room._id = roomId
## Add tabs
for tab in tabs
tab = Object.assign {}, tab
tab.secret = secret if secret?
Meteor.call 'tabNew', Object.assign tab,
meeting: room.meeting
room: roomId
Expand Down

0 comments on commit 2e4d6b9

Please sign in to comment.