mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix push page not refetching
This commit is contained in:
@ -37,6 +37,7 @@ const TabMePush: React.FC = () => {
|
||||
|
||||
const appsQuery = useAppsQuery({
|
||||
options: {
|
||||
enabled: false,
|
||||
onSuccess: async data => {
|
||||
if (data.vapid_key) {
|
||||
await checkPush()
|
||||
@ -49,6 +50,9 @@ const TabMePush: React.FC = () => {
|
||||
}
|
||||
}
|
||||
})
|
||||
useEffect(() => {
|
||||
appsQuery.refetch()
|
||||
}, [])
|
||||
|
||||
const checkPush = async () => {
|
||||
const permissions = await Notifications.getPermissionsAsync()
|
||||
|
Reference in New Issue
Block a user