Merge pull request #16103 from ramonlsouza/condit-hook-talking
refactor: conditional hook in talking indicator
This commit is contained in:
commit
9bf832ca42
@ -16,6 +16,9 @@ const TALKING_INDICATOR_MUTE_INTERVAL = 500;
|
||||
const TALKING_INDICATORS_MAX = 8;
|
||||
|
||||
const TalkingIndicatorContainer = (props) => {
|
||||
const usingUsersContext = useContext(UsersContext);
|
||||
const { users } = usingUsersContext;
|
||||
|
||||
if (!enableTalkingIndicator) return null;
|
||||
|
||||
const sidebarContent = layoutSelectInput((i) => i.sidebarContent);
|
||||
@ -24,9 +27,6 @@ const TalkingIndicatorContainer = (props) => {
|
||||
const { sidebarNavPanel } = sidebarNavigation;
|
||||
const layoutContextDispatch = layoutDispatch();
|
||||
|
||||
const usingUsersContext = useContext(UsersContext);
|
||||
const { users } = usingUsersContext;
|
||||
|
||||
return (
|
||||
<TalkingIndicator
|
||||
{...{
|
||||
|
Loading…
Reference in New Issue
Block a user