mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fixed #538
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { ContextsV0 } from './v0'
|
||||
import { ContextsV1 } from './v1'
|
||||
import { ContextsV2 } from './v2'
|
||||
import { ContextsV3 } from './v3'
|
||||
|
||||
const contextsMigration = {
|
||||
1: (state: ContextsV0): ContextsV1 => {
|
||||
@ -15,7 +16,12 @@ const contextsMigration = {
|
||||
2: (state: ContextsV1): ContextsV2 => {
|
||||
const { mePage, ...rest } = state
|
||||
return rest
|
||||
},
|
||||
3: (state: ContextsV2): ContextsV3 => {
|
||||
return { ...state, previousSegment: 'Local' }
|
||||
}
|
||||
}
|
||||
|
||||
export { ContextsV3 as ContextsLatest }
|
||||
|
||||
export default contextsMigration
|
||||
|
Reference in New Issue
Block a user