Fix incorrect locked account warning in composer (#34312)
This commit is contained in:
parent
74ee96505a
commit
04a9252a93
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue