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
This commit is contained in:
parent
502bcad701
commit
0012d1236f
3 changed files with 58 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue