Merge pull request #17044 from antobinary/fix-undefined-user
fix: Fix undefined user in rare end-breakout scenario
This commit is contained in:
commit
c3d89ee4fc
@ -140,7 +140,7 @@ export default {
|
||||
isEchoTest: () => AudioManager.isEchoTest,
|
||||
error: () => AudioManager.error,
|
||||
isUserModerator: () => Users.findOne({ userId: Auth.userID },
|
||||
{ fields: { role: 1 } }).role === ROLE_MODERATOR,
|
||||
{ fields: { role: 1 } })?.role === ROLE_MODERATOR,
|
||||
isVoiceUser,
|
||||
autoplayBlocked: () => AudioManager.autoplayBlocked,
|
||||
handleAllowAutoplay: () => AudioManager.handleAllowAutoplay(),
|
||||
|
@ -642,7 +642,7 @@ class VideoService {
|
||||
const currentUser = Users.findOne({ userId: Auth.userID },
|
||||
{ fields: { role: 1 } });
|
||||
|
||||
const isModerator = currentUser.role === 'MODERATOR';
|
||||
const isModerator = currentUser?.role === 'MODERATOR';
|
||||
const isBreakout = meetingIsBreakout();
|
||||
const isPinEnabled = this.isPinEnabled();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user