mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	use LL controller in setting
This commit is contained in:
		
							parent
							
								
									a02e1aa2b2
								
							
						
					
					
						commit
						3731431e59
					
				@ -21,7 +21,7 @@ import {
 | 
			
		||||
    NotificationBodyEnabledController,
 | 
			
		||||
    NotificationsEnabledController,
 | 
			
		||||
} from "./controllers/NotificationControllers";
 | 
			
		||||
 | 
			
		||||
import LazyLoadingController from "./controllers/LazyLoadingController";
 | 
			
		||||
 | 
			
		||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
 | 
			
		||||
const LEVELS_ROOM_SETTINGS = ['device', 'room-device', 'room-account', 'account', 'config'];
 | 
			
		||||
@ -87,6 +87,8 @@ export const SETTINGS = {
 | 
			
		||||
        isFeature: true,
 | 
			
		||||
        displayName: _td("Increase performance by loading room members on first view"),
 | 
			
		||||
        supportedLevels: LEVELS_FEATURE,
 | 
			
		||||
        controller: new LazyLoadingController(),
 | 
			
		||||
        default: false,
 | 
			
		||||
    },
 | 
			
		||||
    "MessageComposerInput.dontSuggestEmoji": {
 | 
			
		||||
        supportedLevels: LEVELS_ACCOUNT_SETTINGS,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user