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,
|
isEchoTest: () => AudioManager.isEchoTest,
|
||||||
error: () => AudioManager.error,
|
error: () => AudioManager.error,
|
||||||
isUserModerator: () => Users.findOne({ userId: Auth.userID },
|
isUserModerator: () => Users.findOne({ userId: Auth.userID },
|
||||||
{ fields: { role: 1 } }).role === ROLE_MODERATOR,
|
{ fields: { role: 1 } })?.role === ROLE_MODERATOR,
|
||||||
isVoiceUser,
|
isVoiceUser,
|
||||||
autoplayBlocked: () => AudioManager.autoplayBlocked,
|
autoplayBlocked: () => AudioManager.autoplayBlocked,
|
||||||
handleAllowAutoplay: () => AudioManager.handleAllowAutoplay(),
|
handleAllowAutoplay: () => AudioManager.handleAllowAutoplay(),
|
||||||
|
@ -642,7 +642,7 @@ class VideoService {
|
|||||||
const currentUser = Users.findOne({ userId: Auth.userID },
|
const currentUser = Users.findOne({ userId: Auth.userID },
|
||||||
{ fields: { role: 1 } });
|
{ fields: { role: 1 } });
|
||||||
|
|
||||||
const isModerator = currentUser.role === 'MODERATOR';
|
const isModerator = currentUser?.role === 'MODERATOR';
|
||||||
const isBreakout = meetingIsBreakout();
|
const isBreakout = meetingIsBreakout();
|
||||||
const isPinEnabled = this.isPinEnabled();
|
const isPinEnabled = this.isPinEnabled();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user