diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-20 17:16:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 17:16:56 -0500 |
commit | 22884b53ad4daa2932aa8ed34fc5d5b928f8094d (patch) | |
tree | 15319118bfc342d63c9f320b0f2e4f6cc13fc79a /src/state/models/root-store.ts | |
parent | 3e78c7101815985241b2631432a023dc8f70d82e (diff) | |
download | voidsky-22884b53ad4daa2932aa8ed34fc5d5b928f8094d.tar.zst |
Thread muting [APP-29] (#500)
* Implement thread muting * Apply filtering on background fetched notifs * Implement thread-muting tests
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r-- | src/state/models/root-store.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index 9207f27ba..b3e744a40 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -20,6 +20,7 @@ import {InvitedUsers} from './invited-users' import {PreferencesModel} from './ui/preferences' import {resetToTab} from '../../Navigation' import {ImageSizesCache} from './cache/image-sizes' +import {MutedThreads} from './muted-threads' export const appInfo = z.object({ build: z.string(), @@ -41,6 +42,7 @@ export class RootStoreModel { profiles = new ProfilesCache(this) linkMetas = new LinkMetasCache(this) imageSizes = new ImageSizesCache() + mutedThreads = new MutedThreads() constructor(agent: BskyAgent) { this.agent = agent @@ -64,6 +66,7 @@ export class RootStoreModel { shell: this.shell.serialize(), preferences: this.preferences.serialize(), invitedUsers: this.invitedUsers.serialize(), + mutedThreads: this.mutedThreads.serialize(), } } @@ -90,6 +93,9 @@ export class RootStoreModel { if (hasProp(v, 'invitedUsers')) { this.invitedUsers.hydrate(v.invitedUsers) } + if (hasProp(v, 'mutedThreads')) { + this.mutedThreads.hydrate(v.mutedThreads) + } } } |