Move invite-state to new persistence + context and replace the notifications with just showing uses in the modal (#1840)
This commit is contained in:
parent
74f8390f1d
commit
e75b2d508b
12 changed files with 137 additions and 259 deletions
|
@ -97,11 +97,9 @@ export function transform(legacy: LegacySchema): Schema {
|
|||
legacy.preferences.requireAltTextEnabled ||
|
||||
defaults.requireAltTextEnabled,
|
||||
mutedThreads: legacy.mutedThreads.uris || defaults.mutedThreads,
|
||||
invitedUsers: {
|
||||
seenDids: legacy.invitedUsers.seenDids || defaults.invitedUsers.seenDids,
|
||||
invites: {
|
||||
copiedInvites:
|
||||
legacy.invitedUsers.copiedInvites ||
|
||||
defaults.invitedUsers.copiedInvites,
|
||||
legacy.invitedUsers.copiedInvites || defaults.invites.copiedInvites,
|
||||
},
|
||||
onboarding: {
|
||||
step: legacy.onboarding.step || defaults.onboarding.step,
|
||||
|
|
|
@ -29,8 +29,7 @@ export const schema = z.object({
|
|||
}),
|
||||
requireAltTextEnabled: z.boolean(), // should move to server
|
||||
mutedThreads: z.array(z.string()), // should move to server
|
||||
invitedUsers: z.object({
|
||||
seenDids: z.array(z.string()),
|
||||
invites: z.object({
|
||||
copiedInvites: z.array(z.string()),
|
||||
}),
|
||||
onboarding: z.object({
|
||||
|
@ -58,8 +57,7 @@ export const defaults: Schema = {
|
|||
},
|
||||
requireAltTextEnabled: false,
|
||||
mutedThreads: [],
|
||||
invitedUsers: {
|
||||
seenDids: [],
|
||||
invites: {
|
||||
copiedInvites: [],
|
||||
},
|
||||
onboarding: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue