mirror of
https://github.com/tooot-app/app
synced 2025-04-23 14:47:21 +02:00
Default posting visibility cannot be direct
This commit is contained in:
parent
9658b0cb71
commit
0ca4490b90
@ -122,7 +122,6 @@
|
|||||||
"public": "Public",
|
"public": "Public",
|
||||||
"unlisted": "Unlisted",
|
"unlisted": "Unlisted",
|
||||||
"private": "Followers only",
|
"private": "Followers only",
|
||||||
"direct": "Direct message",
|
|
||||||
"cancel": "$t(common:buttons.cancel)"
|
"cancel": "$t(common:buttons.cancel)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -25,10 +25,9 @@ const ScreenMeProfileRoot: React.FC<StackScreenProps<
|
|||||||
t('me.profile.root.visibility.options.public'),
|
t('me.profile.root.visibility.options.public'),
|
||||||
t('me.profile.root.visibility.options.unlisted'),
|
t('me.profile.root.visibility.options.unlisted'),
|
||||||
t('me.profile.root.visibility.options.private'),
|
t('me.profile.root.visibility.options.private'),
|
||||||
t('me.profile.root.visibility.options.direct'),
|
|
||||||
t('me.profile.root.visibility.options.cancel')
|
t('me.profile.root.visibility.options.cancel')
|
||||||
],
|
],
|
||||||
cancelButtonIndex: 4
|
cancelButtonIndex: 3
|
||||||
},
|
},
|
||||||
async buttonIndex => {
|
async buttonIndex => {
|
||||||
switch (buttonIndex) {
|
switch (buttonIndex) {
|
||||||
@ -41,9 +40,6 @@ const ScreenMeProfileRoot: React.FC<StackScreenProps<
|
|||||||
case 2:
|
case 2:
|
||||||
mutate({ type: 'source[privacy]', data: 'private' })
|
mutate({ type: 'source[privacy]', data: 'private' })
|
||||||
break
|
break
|
||||||
case 3:
|
|
||||||
mutate({ type: 'source[privacy]', data: 'direct' })
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user