cabal-club / cabal-core

Core database and replication for cabal.
GNU Affero General Public License v3.0
303 stars 43 forks source link

Emit event for new feed being added #76

Open cblgh opened 4 years ago

cblgh commented 4 years ago

while working on https://github.com/cabal-club/cabal-cli/pull/179/, adding /ids command to toggle showing a public-key suffix for all nicknames in chat, i noticed that i wanted to call a function every time a new peer has been added for the first time.

looking around in core it seems we don't have any such event; i think it would be a good thing to emit

hackergrrl commented 4 years ago

Can you elaborate on this a bit? What would the use case be for this event? Triggering a redraw?