Merge pull request #20123 from prlanzarin/u27/fix/assorted-br-crashes

fix: undefined accesses causes crashes in actions-bar breakout utils
This commit is contained in:
Anton Georgiev 2024-04-30 14:38:14 -04:00 committed by GitHub
commit 403959bc34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,15 +61,15 @@ export default {
}, },
}), }),
meetingName: () => Meetings.findOne({ meetingId: Auth.meetingID }, meetingName: () => Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'meetingProp.name': 1 } }).meetingProp.name, { fields: { 'meetingProp.name': 1 } })?.meetingProp?.name,
users: () => Users.find({ users: () => Users.find({
meetingId: Auth.meetingID, meetingId: Auth.meetingID,
clientType: { $ne: DIAL_IN_USER }, clientType: { $ne: DIAL_IN_USER },
}).fetch(), }).fetch(),
groups: () => Meetings.findOne({ meetingId: Auth.meetingID }, groups: () => Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { groups: 1 } }).groups, { fields: { groups: 1 } })?.groups,
isBreakoutRecordable: () => Meetings.findOne({ meetingId: Auth.meetingID }, isBreakoutRecordable: () => Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'breakoutProps.record': 1 } }).breakoutProps.record, { fields: { 'breakoutProps.record': 1 } })?.breakoutProps?.record,
toggleRecording: () => makeCall('toggleRecording'), toggleRecording: () => makeCall('toggleRecording'),
createBreakoutRoom: (rooms, durationInMinutes, record = false, captureNotes = false, captureSlides = false, sendInviteToModerators = false) => makeCall('createBreakoutRoom', rooms, durationInMinutes, record, captureNotes, captureSlides, sendInviteToModerators), createBreakoutRoom: (rooms, durationInMinutes, record = false, captureNotes = false, captureSlides = false, sendInviteToModerators = false) => makeCall('createBreakoutRoom', rooms, durationInMinutes, record, captureNotes, captureSlides, sendInviteToModerators),
sendInvitation: (breakoutId, userId) => makeCall('requestJoinURL', { breakoutId, userId }), sendInvitation: (breakoutId, userId) => makeCall('requestJoinURL', { breakoutId, userId }),