| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -12,6 +12,7 @@ import {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  SessionSettingsItemWrapper,
 | 
					 | 
					 | 
					 | 
					  SessionSettingsItemWrapper,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  SessionToggleWithDescription,
 | 
					 | 
					 | 
					 | 
					  SessionToggleWithDescription,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} from '../SessionSettingListItem';
 | 
					 | 
					 | 
					 | 
					} from '../SessionSettingListItem';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import { useHasEnterSendEnabled } from '../../../state/selectors/settings';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					async function toggleCommunitiesPruning() {
 | 
					 | 
					 | 
					 | 
					async function toggleCommunitiesPruning() {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  try {
 | 
					 | 
					 | 
					 | 
					  try {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -84,18 +85,17 @@ const AudioMessageAutoPlaySetting = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					};
 | 
					 | 
					 | 
					 | 
					};
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const EnterKeyFunctionSetting = () => {
 | 
					 | 
					 | 
					 | 
					const EnterKeyFunctionSetting = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const forceUpdate = useUpdate();
 | 
					 | 
					 | 
					 | 
					  const initialSetting = useHasEnterSendEnabled();
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					  const selectedWithSettingTrue = 'enterForNewLine';
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const initialSetting = window.getSettingValue(SettingsKey.hasShiftSendEnabled) || false;
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const items = [
 | 
					 | 
					 | 
					 | 
					  const items = [
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    {
 | 
					 | 
					 | 
					 | 
					    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      label: window.i18n('enterSendNewMessageDescription'),
 | 
					 | 
					 | 
					 | 
					      label: window.i18n('enterSendNewMessageDescription'),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      value: false,
 | 
					 | 
					 | 
					 | 
					      value: 'enterForSend',
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    {
 | 
					 | 
					 | 
					 | 
					    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      label: window.i18n('enterNewLineDescription'),
 | 
					 | 
					 | 
					 | 
					      label: window.i18n('enterNewLineDescription'),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      value: true,
 | 
					 | 
					 | 
					 | 
					      value: selectedWithSettingTrue,
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ];
 | 
					 | 
					 | 
					 | 
					  ];
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -106,15 +106,15 @@ const EnterKeyFunctionSetting = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      inline={false}
 | 
					 | 
					 | 
					 | 
					      inline={false}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    >
 | 
					 | 
					 | 
					 | 
					    >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <SessionRadioGroup
 | 
					 | 
					 | 
					 | 
					      <SessionRadioGroup
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        initialItem={initialSetting}
 | 
					 | 
					 | 
					 | 
					        initialItem={initialSetting ? 'enterForNewLine' : 'enterForSend'}
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        group={SettingsKey.hasShiftSendEnabled} // make sure to define this key in your SettingsKey enum
 | 
					 | 
					 | 
					 | 
					        group={SettingsKey.hasShiftSendEnabled} // make sure to define this key in your SettingsKey enum
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        items={items}
 | 
					 | 
					 | 
					 | 
					        items={items}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /* eslint-disable @typescript-eslint/no-misused-promises */
 | 
					 | 
					 | 
					 | 
					        onClick={(selectedRadioValue: string) => {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        onClick={async (selectedRadioValue: string | boolean) => {
 | 
					 | 
					 | 
					 | 
					          void window.setSettingValue(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          await window.setSettingValue(SettingsKey.hasShiftSendEnabled, selectedRadioValue);
 | 
					 | 
					 | 
					 | 
					            SettingsKey.hasShiftSendEnabled,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          forceUpdate();
 | 
					 | 
					 | 
					 | 
					            selectedRadioValue === selectedWithSettingTrue
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          );
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }}
 | 
					 | 
					 | 
					 | 
					        }}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /* eslint-enable @typescript-eslint/no-misused-promises */
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      />
 | 
					 | 
					 | 
					 | 
					      />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </SessionSettingsItemWrapper>
 | 
					 | 
					 | 
					 | 
					    </SessionSettingsItemWrapper>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  );
 | 
					 | 
					 | 
					 | 
					  );
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |