mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
import client from '@api/client'
|
||||
import NetInfo from '@react-native-community/netinfo'
|
||||
import { store } from '@root/store'
|
||||
import { localRemoveInstance } from '@utils/slices/instancesSlice'
|
||||
import {
|
||||
localRemoveInstance,
|
||||
localUpdateAccount
|
||||
} from '@utils/slices/instancesSlice'
|
||||
import log from './log'
|
||||
|
||||
const netInfo = async (): Promise<{
|
||||
@ -31,6 +34,12 @@ const netInfo = async (): Promise<{
|
||||
store.dispatch(localRemoveInstance(activeIndex))
|
||||
return Promise.resolve({ connected: true, corruputed: '' })
|
||||
} else {
|
||||
store.dispatch(
|
||||
localUpdateAccount({
|
||||
acct: res.acct,
|
||||
avatarStatic: res.avatar_static
|
||||
})
|
||||
)
|
||||
return Promise.resolve({ connected: true })
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user