diff --git a/packages/app/src/Utils/Login/MultiAccountStore.ts b/packages/app/src/Utils/Login/MultiAccountStore.ts index f72a5d8c..fd795c45 100644 --- a/packages/app/src/Utils/Login/MultiAccountStore.ts +++ b/packages/app/src/Utils/Login/MultiAccountStore.ts @@ -17,7 +17,7 @@ import { v4 as uuid } from "uuid"; import { createPublisher, LoginSession, LoginSessionType, SnortAppData } from "@/Utils/Login/index"; -import { DefaultPreferences } from "./Preferences"; +import { DefaultPreferences, UserPreferences } from "./Preferences"; const AccountStoreKey = "sessions"; const LoggedOut = { @@ -359,6 +359,13 @@ export class MultiAccountStore extends ExternalStore { delete acc.state.appdata["showContentWarningPosts"]; didMigrate = true; } + + if (acc.state.appdata.preferences) { + if (!("muteWithWoT" in acc.state.appdata.preferences)) { + (acc.state.appdata.preferences as UserPreferences)["muteWithWoT"] = true; + didMigrate = true; + } + } } }