Closed KyleMaas closed 3 years ago
There. Reference counting for both SSB.connected() as well as the ui/connected.js indicator. Additionally, this fixes another use case:
For cases of one peer, the callback would never be run in this case. So, this fixes that as well.
Glorious!
Implements the missing SSB.connected() function and adds it back into the path for SSB.getOOO(). This actually seems to work quite well - tested by loading a thread with a message outside of my graph, refreshing the page, and clicking "Get msg" before it connected. It dutifully waited for the connection and then loaded the message.
Fixes #38.