Fix incorrect locked account warning in composer (#34312)
This commit is contained in:
		@@ -11,7 +11,7 @@ import { HASHTAG_PATTERN_REGEX } from 'mastodon/utils/hashtags';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const selector = createSelector(
 | 
					const selector = createSelector(
 | 
				
			||||||
  (state: RootState) => state.compose.get('privacy') as string,
 | 
					  (state: RootState) => state.compose.get('privacy') as string,
 | 
				
			||||||
  (state: RootState) => !!state.compose.getIn(['accounts', me, 'locked']),
 | 
					  (state: RootState) => !!state.accounts.getIn([me, 'locked']),
 | 
				
			||||||
  (state: RootState) => state.compose.get('text') as string,
 | 
					  (state: RootState) => state.compose.get('text') as string,
 | 
				
			||||||
  (privacy, locked, text) => ({
 | 
					  (privacy, locked, text) => ({
 | 
				
			||||||
    needsLockWarning: privacy === 'private' && !locked,
 | 
					    needsLockWarning: privacy === 'private' && !locked,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user