diff --git a/source/storage/migrations/v1-1-2.ts b/source/storage/migrations/v1-1-2.ts index e3ffa69..a06c44e 100644 --- a/source/storage/migrations/v1-1-2.ts +++ b/source/storage/migrations/v1-1-2.ts @@ -10,6 +10,16 @@ export function v112DeserializeData(data: Record): { usernameColors: [], }; + if (data.data?.userLabels !== undefined) { + deserialized.userLabels = data.data + .userLabels as V112Settings["data"]["userLabels"]; + } + + if (data.data?.usernameColors !== undefined) { + deserialized.usernameColors = data.data + .usernameColors as V112Settings["data"]["usernameColors"]; + } + for (const [key, value] of Object.entries(data)) { if (key.startsWith("userLabel")) { deserialized.userLabels.push(