ssbc / ssb-friends

Manages the SSB social graph
MIT License
23 stars 6 forks source link

fix race condition on friends.stream - fixes#37 #38

Closed mixmix closed 5 years ago

mixmix commented 5 years ago

I was experiencing a bad problem with a legacy API. (https://github.com/ssbc/ssb-friends/issues/37) The problem this fixes is patchbay sometimes not knowing at all what any of your relationships are. It's a security problem because you can't check if you have an existing relationship with a person.

This is a poor fix. I would like to move beyond this API and access the layered graph more directly to answer some of the questions I need ssb-friends to answer. I'm genuinely excited about that, and it's a dedicated piece of work seperate to this.

cc @dominictarr