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

Add static emoji option

This commit is contained in:
Zhiyuan Zheng
2022-05-13 00:04:15 +02:00
parent 9c3e8f58b0
commit dde33ad1ad
9 changed files with 131 additions and 59 deletions

View File

@ -1,5 +1,6 @@
import { SettingsV0 } from './v0'
import { SettingsV1 } from './v1'
import { SettingsV2 } from './v2'
const settingsMigration = {
1: (state: SettingsV0): SettingsV1 => {
@ -7,6 +8,13 @@ const settingsMigration = {
...state,
darkTheme: 'lighter'
}
},
2: (state: SettingsV1): SettingsV2 => {
return {
...state,
darkTheme: 'lighter',
staticEmoji: false
}
}
}