about summary refs log tree commit diff
path: root/src/state/persisted
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-06-18 22:05:59 +0100
committerGitHub <noreply@github.com>2024-06-19 00:05:59 +0300
commit0012d1236ffa4f268fb359931d02335b21610fd6 (patch)
treee217b731a607a332b084a35b5717e64811209984 /src/state/persisted
parent502bcad7017d72fb23c40a268b1e220f892db7da (diff)
downloadvoidsky-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.ts3
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>