Add ability for admins to force grouped notifications in web UI (#31610)
This commit is contained in:
		
					parent
					
						
							
								da42e9d446
							
						
					
				
			
			
				commit
				
					
						c73868cd78
					
				
			
		
					 9 changed files with 33 additions and 26 deletions
				
			
		|  | @ -1,3 +1,4 @@ | |||
| import { forceGroupedNotifications } from 'mastodon/initial_state'; | ||||
| import type { RootState } from 'mastodon/store'; | ||||
| 
 | ||||
| /* eslint-disable @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */ | ||||
|  | @ -25,6 +26,10 @@ export const selectSettingsNotificationsQuickFilterAdvanced = ( | |||
| ) => | ||||
|   state.settings.getIn(['notifications', 'quickFilter', 'advanced']) as boolean; | ||||
| 
 | ||||
| export const selectUseGroupedNotifications = (state: RootState) => | ||||
|   forceGroupedNotifications || | ||||
|   (state.settings.getIn(['notifications', 'groupingBeta']) as boolean); | ||||
| 
 | ||||
| export const selectSettingsNotificationsShowUnread = (state: RootState) => | ||||
|   state.settings.getIn(['notifications', 'showUnread']) as boolean; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue