mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -174,7 +174,23 @@ const Compose: React.FC<Props> = ({ route: { params }, navigation }) => {
|
||||
composePost(params, composeState)
|
||||
.then(() => {
|
||||
haptics('Success')
|
||||
queryClient.invalidateQueries(['Following'])
|
||||
queryClient.invalidateQueries(['Following', {}])
|
||||
if (
|
||||
params?.type &&
|
||||
(params.type === 'reply' || params.type === 'conversation')
|
||||
) {
|
||||
queryClient.invalidateQueries(
|
||||
[
|
||||
'Toot',
|
||||
{
|
||||
toot: params.incomingStatus.reblog
|
||||
? params.incomingStatus.reblog.id
|
||||
: params.incomingStatus.id
|
||||
}
|
||||
],
|
||||
{ exact: true, active: true }
|
||||
)
|
||||
}
|
||||
navigation.goBack()
|
||||
})
|
||||
.catch(() => {
|
||||
|
Reference in New Issue
Block a user