flycat-web icon indicating copy to clipboard operation
flycat-web copied to clipboard

[BUG] can not @somebody if you didn't follow her/him

Open digi-monkey opened this issue 1 year ago • 3 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Some actions on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots or Logs

If applicable, add screenshots or logs to help explain your problem.

some logs...

Additional context

Add any other context about the problem here.

digi-monkey avatar Dec 20 '23 04:12 digi-monkey

the reason is that we can't index all the profile across the distributed network. the current design is to show your following list when you input @, one simple solution is to just index all the profiles in the local database? I think this can help reduce such problem a lot and we can see if there is a better solution

digi-monkey avatar Dec 20 '23 04:12 digi-monkey

Indexing all profiles to the local database may not be very efficient. Perhaps we can consider retrieving profiles with the same prefix from Relay in real-time when entering text after “@”. I’m not sure if this can be done, but if possible, it should be a better solution.

ahonn avatar Dec 22 '23 17:12 ahonn

Indexing all profiles to the local database may not be very efficient. Perhaps we can consider retrieving profiles with the same prefix from Relay in real-time when entering text after “@”. I’m not sure if this can be done, but if possible, it should be a better solution.

  1. right now not many relays support searching
  2. from a design pattern, I would love a offline-first style for flycat. nostr app should be offline-first and treat relay as unreliable cache for data source. local database should be the first-class.

digi-monkey avatar Dec 25 '23 14:12 digi-monkey