Default posting visibility cannot be direct

This commit is contained in:
Zhiyuan Zheng 2021-05-09 23:30:13 +02:00
parent 9658b0cb71
commit 0ca4490b90
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 1 additions and 6 deletions

View File

@ -122,7 +122,6 @@
"public": "Public",
"unlisted": "Unlisted",
"private": "Followers only",
"direct": "Direct message",
"cancel": "$t(common:buttons.cancel)"
}
},

View File

@ -25,10 +25,9 @@ const ScreenMeProfileRoot: React.FC<StackScreenProps<
t('me.profile.root.visibility.options.public'),
t('me.profile.root.visibility.options.unlisted'),
t('me.profile.root.visibility.options.private'),
t('me.profile.root.visibility.options.direct'),
t('me.profile.root.visibility.options.cancel')
],
cancelButtonIndex: 4
cancelButtonIndex: 3
},
async buttonIndex => {
switch (buttonIndex) {
@ -41,9 +40,6 @@ const ScreenMeProfileRoot: React.FC<StackScreenProps<
case 2:
mutate({ type: 'source[privacy]', data: 'private' })
break
case 3:
mutate({ type: 'source[privacy]', data: 'direct' })
break
}
}
)