ssbc / ssb-tribes2

SSB private groups with ssb-db2
8 stars 1 forks source link

Auto start start() #37

Open Powersource opened 1 year ago

Powersource commented 1 year ago

When writing tests I always forget to run start() and I think users will too. Could do like other plugins and have an option to disable autostart

staltz commented 1 year ago

We also spoke on a video call that we need to document (with lots of warnings) that start() will automatically findOrCreate an invitations feed on your metafeed tree. This could be a problem if you're recovering your SSB data from backup, in the sense that it could create a fork (if you happen to call tribes2.start() before all data has been synced).

Either that, or we decouple invitations-feed-creation from start(). But that sounds to me like there would be two "start" functions: one for monitoring the additions (other people publishing on their invitations feed) and another function for setting up your invitations feed (so you can invite others).