1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

MVP last read position

This commit is contained in:
Zhiyuan Zheng
2022-01-16 23:26:05 +01:00
parent 0b4a8ead84
commit 9a41dd2191
20 changed files with 446 additions and 87 deletions

View File

@ -1,4 +1,5 @@
import { ContextsV0 } from './v0'
import { ContextsV1 } from './v1'
const contextsMigration = {
1: (state: ContextsV0) => {
@ -10,6 +11,11 @@ const contextsMigration = {
announcements: { shown: false, unread: 0 }
}
})
},
2: (state: ContextsV1) => {
// @ts-ignore
delete state.mePage
return state
}
}