diff options
Diffstat (limited to 'src/state/models/content')
-rw-r--r-- | src/state/models/content/feed-source.ts | 11 | ||||
-rw-r--r-- | src/state/models/content/list.ts | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/state/models/content/feed-source.ts b/src/state/models/content/feed-source.ts index 79747d6fb..156e3be3b 100644 --- a/src/state/models/content/feed-source.ts +++ b/src/state/models/content/feed-source.ts @@ -142,7 +142,8 @@ export class FeedSourceModel { } async unsave() { - if (this.type !== 'feed-generator') { + // TODO TEMPORARY — see PRF's comment in content/list.ts togglePin + if (this.type !== 'feed-generator' && this.type !== 'list') { return } try { @@ -179,7 +180,13 @@ export class FeedSourceModel { name: this.displayName, uri: this.uri, }) - return this.rootStore.preferences.removePinnedFeed(this.uri) + + if (this.type === 'list') { + // TODO TEMPORARY — see PRF's comment in content/list.ts togglePin + return this.unsave() + } else { + return this.rootStore.preferences.removePinnedFeed(this.uri) + } } } diff --git a/src/state/models/content/list.ts b/src/state/models/content/list.ts index 115426e5c..fc09eeb9f 100644 --- a/src/state/models/content/list.ts +++ b/src/state/models/content/list.ts @@ -361,7 +361,7 @@ export class ListModel { name: this.data?.name || '', uri: this.uri, }) - // TEMPORARY + // TODO TEMPORARY // lists are temporarily piggybacking on the saved/pinned feeds preferences // we'll eventually replace saved feeds with the bookmarks API // until then, we need to unsave lists instead of just unpin them |