| 
						
						
						
					 | 
					 | 
					@ -1,5 +1,5 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { debounce } from 'lodash';
 | 
					 | 
					 | 
					 | 
					import { debounce } from 'lodash';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { useEffect, useState } from 'react';
 | 
					 | 
					 | 
					 | 
					import { useEffect, useRef, useState } from 'react';
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { useDispatch, useSelector } from 'react-redux';
 | 
					 | 
					 | 
					 | 
					import { useDispatch, useSelector } from 'react-redux';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import useInterval from 'react-use/lib/useInterval';
 | 
					 | 
					 | 
					 | 
					import useInterval from 'react-use/lib/useInterval';
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -47,6 +47,8 @@ import { switchThemeTo } from '../../themes/switchTheme';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { ReleasedFeatures } from '../../util/releaseFeature';
 | 
					 | 
					 | 
					 | 
					import { ReleasedFeatures } from '../../util/releaseFeature';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { getOppositeTheme } from '../../util/theme';
 | 
					 | 
					 | 
					 | 
					import { getOppositeTheme } from '../../util/theme';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { SessionNotificationCount } from '../icon/SessionNotificationCount';
 | 
					 | 
					 | 
					 | 
					import { SessionNotificationCount } from '../icon/SessionNotificationCount';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import { useHotkey } from '../../hooks/useHotkey';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import { getIsModalVisble } from '../../state/selectors/modal';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const Section = (props: { type: SectionType }) => {
 | 
					 | 
					 | 
					 | 
					const Section = (props: { type: SectionType }) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const ourNumber = useSelector(getOurNumber);
 | 
					 | 
					 | 
					 | 
					  const ourNumber = useSelector(getOurNumber);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -54,6 +56,7 @@ const Section = (props: { type: SectionType }) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const dispatch = useDispatch();
 | 
					 | 
					 | 
					 | 
					  const dispatch = useDispatch();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const { type } = props;
 | 
					 | 
					 | 
					 | 
					  const { type } = props;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  const isModalVisible = useSelector(getIsModalVisble);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const isDarkTheme = useIsDarkTheme();
 | 
					 | 
					 | 
					 | 
					  const isDarkTheme = useIsDarkTheme();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const focusedSection = useSelector(getFocusedSection);
 | 
					 | 
					 | 
					 | 
					  const focusedSection = useSelector(getFocusedSection);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const isSelected = focusedSection === props.type;
 | 
					 | 
					 | 
					 | 
					  const isSelected = focusedSection === props.type;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -82,6 +85,17 @@ const Section = (props: { type: SectionType }) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  };
 | 
					 | 
					 | 
					 | 
					  };
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  const settingsIconRef = useRef<HTMLButtonElement>(null);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  useHotkey('Escape', () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    if (type === SectionType.Settings && !isModalVisible) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      settingsIconRef.current?.blur();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      dispatch(clearSearch());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      dispatch(showLeftPaneSection(SectionType.Message));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      dispatch(resetLeftOverlayMode());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  if (type === SectionType.Profile) {
 | 
					 | 
					 | 
					 | 
					  if (type === SectionType.Profile) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    return (
 | 
					 | 
					 | 
					 | 
					    return (
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <Avatar
 | 
					 | 
					 | 
					 | 
					      <Avatar
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -116,6 +130,7 @@ const Section = (props: { type: SectionType }) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          iconType={'gear'}
 | 
					 | 
					 | 
					 | 
					          iconType={'gear'}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          onClick={handleClick}
 | 
					 | 
					 | 
					 | 
					          onClick={handleClick}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          isSelected={isSelected}
 | 
					 | 
					 | 
					 | 
					          isSelected={isSelected}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          ref={settingsIconRef}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        />
 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      );
 | 
					 | 
					 | 
					 | 
					      );
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    case SectionType.PathIndicator:
 | 
					 | 
					 | 
					 | 
					    case SectionType.PathIndicator:
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |