Revert "delay toast after posting (#9208)"

This reverts commit 6414bda252.
This commit is contained in:
Eric Bailey
2025-10-21 14:59:50 -05:00
parent fee8eb9f6e
commit 799cf5a0a1
+25 -27
View File
@@ -564,33 +564,31 @@ export const ComposePost = ({
onPostSuccess?.(postSuccessData) onPostSuccess?.(postSuccessData)
} }
onClose() onClose()
setTimeout(() => { Toast.show(
Toast.show( <Toast.Outer>
<Toast.Outer> <Toast.Icon />
<Toast.Icon /> <Toast.Text>
<Toast.Text> {thread.posts.length > 1
{thread.posts.length > 1 ? _(msg`Your posts were sent`)
? _(msg`Your posts were sent`) : replyTo
: replyTo ? _(msg`Your reply was sent`)
? _(msg`Your reply was sent`) : _(msg`Your post was sent`)}
: _(msg`Your post was sent`)} </Toast.Text>
</Toast.Text> {postUri && (
{postUri && ( <Toast.Action
<Toast.Action label={_(msg`View post`)}
label={_(msg`View post`)} onPress={() => {
onPress={() => { const {host: name, rkey} = new AtUri(postUri)
const {host: name, rkey} = new AtUri(postUri) navigation.navigate('PostThread', {name, rkey})
navigation.navigate('PostThread', {name, rkey}) }}>
}}> <Trans context="Action to view the post the user just created">
<Trans context="Action to view the post the user just created"> View
View </Trans>
</Trans> </Toast.Action>
</Toast.Action> )}
)} </Toast.Outer>,
</Toast.Outer>, {type: 'success'},
{type: 'success'}, )
)
}, 500)
}, [ }, [
_, _,
agent, agent,