Why Nostr? What is Njump?
2023-05-06 15:20:15

jb55 on Nostr: Put together this bot that notifies whenever someone submits new code to damus. This ...

Put together this bot that notifies whenever someone submits new code to damus. This allows me to never open GitHub or email which is nice. nostr is slowly becoming a productivity tool for me. Lots of use cases to explore.
fix: npub search fails on the first try (#1100)

This PR fixes the issue where npub search fails on the first try.

What was happening:
`SearchEventView` calls `find_event(state:evid:search_type:find_from:callback:)` to search for the entered npub. The search actually succeeded, but the call site was ignoring the returned event and never caching the profile. The reason it works the second time is because the `RelayPool` eventually got around to caching the profile. This is also why the other PR related to this issue works by adding a short delay.

How it's fixed:
Now `SearchingEventView` will call `process_metadata_event(events:our_pubkey:profiles:ev:)`, and upon completion, will update the view state with the successful result.

fix-npub-search, 1 commits

https://github.com/damus-io/damus/pull/1100
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s