From 3aa4855a6b03c5e6bf4c491b72af0b0514d34f6e Mon Sep 17 00:00:00 2001
From: Ramon Souza <contato@ramonsouza.com>
Date: Mon, 5 Jul 2021 08:20:27 -0300
Subject: [PATCH] fix client crash when viewers is ejected and userlist is
 hidden

---
 .../components/chat/message-form/typing-indicator/container.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
index b77ea0e364..8b151a5fd9 100644
--- a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
+++ b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
@@ -47,7 +47,7 @@ export default withTracker(() => {
     },
   });
 
-  if (meeting.lockSettingsProps.hideUserList && currentUser.role === USER_CONFIG.role_viewer) {
+  if (meeting.lockSettingsProps.hideUserList && currentUser?.role === USER_CONFIG.role_viewer) {
     selector.role = { $ne: USER_CONFIG.role_viewer };
   }
 
-- 
GitLab