Merge pull request #20124 from prlanzarin/u27/fix/assorted-crashes-redux

fix: crash at meeting-ended due to undefined access + incorrect meetingID
This commit is contained in:
Anton Georgiev 2024-04-30 14:40:04 -04:00 committed by GitHub
commit 850e8af19a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,8 @@ class MeetingEnded extends PureComponent {
this.localUserRole = user.role;
}
const meeting = Meetings.findOne({ id: user?.meetingID });
const meetingID = user?.meetingId || Auth.meetingID;
const meeting = Meetings.findOne({ id: meetingID });
if (meeting) {
this.endWhenNoModeratorMinutes = meeting.durationProps.endWhenNoModeratorDelayInMinutes;