1
0
mirror of https://github.com/tooot-app/app synced 2025-02-01 19:16:56 +01:00

Navigate follow push to account page

This commit is contained in:
xmflsct 2023-04-17 22:42:56 +02:00
parent 768a27d37c
commit 7a5464e38a

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
}
}
})
}