Merge branch 'ansh/app-812-add-custom-feed-discovery-to-onboarding' into main

This commit is contained in:
Paul Frazee 2023-08-30 16:18:21 -07:00
commit f9cab178b9
29 changed files with 1033 additions and 217 deletions

View file

@ -67,6 +67,19 @@ export class CustomFeedModel {
}
}
async pin() {
try {
await this.rootStore.preferences.addPinnedFeed(this.uri)
} catch (error) {
this.rootStore.log.error('Failed to pin feed', error)
} finally {
track('CustomFeed:Pin', {
name: this.data.displayName,
uri: this.uri,
})
}
}
async unsave() {
try {
await this.rootStore.preferences.removeSavedFeed(this.uri)