Bookmarks Refactor

- Don't do async loading stuff
- Move bookmarkmanager to damus state
- Remove bookmarks update notififcation and switch to observed object
- Switch api to use events explicitly instead of strings
This commit is contained in:
William Casarin
2023-03-03 11:57:18 -05:00
parent 5423704980
commit b58baca227
12 changed files with 76 additions and 60 deletions

View File

@@ -616,7 +616,8 @@ struct ContentView: View {
relay_filters: relay_filters,
relay_metadata: metadatas,
drafts: Drafts(),
events: EventCache()
events: EventCache(),
bookmarks: BookmarksManager(pubkey: pubkey)
)
home.damus_state = self.damus_state!