Navigate follow push to account page

This commit is contained in:
xmflsct 2023-04-17 22:42:56 +02:00
parent 768a27d37c
commit 7a5464e38a
1 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,20 @@ const pushUseNavigate = (id?: Mastodon.Notification['id']) => {
params: { toot: body.status }
}
})
return
}
if (body.type === 'follow' || body.type === 'follow_request') {
if (body.account) {
navigationRef.navigate('Screen-Tabs', {
screen: 'Tab-Notifications',
params: {
screen: 'Tab-Shared-Account',
params: { account: body.account }
}
})
return
}
}
})
}