Fix incorrect locked account warning in composer (#34312)

This commit is contained in:
Claire authored and GitHub committed 2025-03-29 18:06:46 +00:00
1 parent 74ee96505a
commit 04a9252a93
1 file changed
+1 -1
@@ -11,7 +11,7 @@ import { HASHTAG_PATTERN_REGEX } from 'mastodon/utils/hashtags';
const selector = createSelector(
(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,
(privacy, locked, text) => ({
needsLockWarning: privacy === 'private' && !locked,