ndb: switch profile queries to use transactions

this should ensure no crashing occurs when querying profiles
This commit is contained in:
William Casarin
2023-09-10 14:51:55 -07:00
parent 622a436589
commit fc9b9f2940
51 changed files with 435 additions and 252 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ struct EventActionBar: View {
}
var lnurl: String? {
damus_state.profiles.lookup_with_timestamp(event.pubkey)?.lnurl
damus_state.profiles.lookup_with_timestamp(event.pubkey).map({ pr in pr?.lnurl }).value
}
var show_like: Bool {