From 6414bda2528a441dbf43f40e8206a4efc364b546 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 15 Oct 2025 18:56:35 +0300 Subject: [PATCH] delay toast after posting (#9208) --- src/view/com/composer/Composer.tsx | 52 ++++++++++++++++-------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 305790cb18..7746d93c30 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -564,31 +564,33 @@ export const ComposePost = ({ onPostSuccess?.(postSuccessData) } onClose() - Toast.show( - - - - {thread.posts.length > 1 - ? _(msg`Your posts were sent`) - : replyTo - ? _(msg`Your reply was sent`) - : _(msg`Your post was sent`)} - - {postUri && ( - { - const {host: name, rkey} = new AtUri(postUri) - navigation.navigate('PostThread', {name, rkey}) - }}> - - View - - - )} - , - {type: 'success'}, - ) + setTimeout(() => { + Toast.show( + + + + {thread.posts.length > 1 + ? _(msg`Your posts were sent`) + : replyTo + ? _(msg`Your reply was sent`) + : _(msg`Your post was sent`)} + + {postUri && ( + { + const {host: name, rkey} = new AtUri(postUri) + navigation.navigate('PostThread', {name, rkey}) + }}> + + View + + + )} + , + {type: 'success'}, + ) + }, 500) }, [ _, agent,