diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-06-18 22:05:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 00:05:59 +0300 |
commit | 0012d1236ffa4f268fb359931d02335b21610fd6 (patch) | |
tree | e217b731a607a332b084a35b5717e64811209984 /src/state/persisted | |
parent | 502bcad7017d72fb23c40a268b1e220f892db7da (diff) | |
download | voidsky-0012d1236ffa4f268fb359931d02335b21610fd6.tar.zst |
Migrate local thread mutes (#4523)
* migrate thread mutes * don't try and clear if not logged in yet * migrate mutes one at a time * write before mutating * only migrate mutes of self posts * use /** @deprecated */ * shouldLike -> shouldMute
Diffstat (limited to 'src/state/persisted')
-rw-r--r-- | src/state/persisted/schema.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts index b81cf5962..9d5b17d35 100644 --- a/src/state/persisted/schema.ts +++ b/src/state/persisted/schema.ts @@ -74,7 +74,6 @@ export const schema = z.object({ flickr: z.enum(externalEmbedOptions).optional(), }) .optional(), - mutedThreads: z.array(z.string()), // should move to server invites: z.object({ copiedInvites: z.array(z.string()), }), @@ -88,6 +87,8 @@ export const schema = z.object({ disableHaptics: z.boolean().optional(), disableAutoplay: z.boolean().optional(), kawaii: z.boolean().optional(), + /** @deprecated */ + mutedThreads: z.array(z.string()), }) export type Schema = z.infer<typeof schema> |