perf: cache link previews

Changelog-Added: Cache link previews
This commit is contained in:
William Casarin
2023-01-02 15:18:42 -08:00
parent b42f0ec5eb
commit 7372c4847d
11 changed files with 38 additions and 16 deletions

View File

@@ -423,7 +423,8 @@ struct ContentView: View {
contacts: Contacts(),
tips: TipCounter(our_pubkey: pubkey),
profiles: Profiles(),
dms: home.dms
dms: home.dms,
previews: PreviewCache()
)
home.damus_state = self.damus_state!