cabal-club / cabal-client

interface for writing peer-to-peer chat clients
GNU General Public License v3.0
95 stars 14 forks source link

Allow leaving private messages #87

Closed dchiquito closed 2 years ago

dchiquito commented 2 years ago

The /leave command is now permitted on private messages.

A settings.yml file is now created in the ~/.cabal/ directory. Right now it looks like this:

{cabal id}:
  joinedPrivateMessages:
    - {pm id}
    - {pm id}

Private messages are now only considered "joined" if they are present in the list in the settings file for the cabal. New PMs or /joining an old PM will add the PM id to the list, while /leave will remove it.

cblgh commented 2 years ago

@dchiquito woah, so fast! 💨

from what i can see: all looks good to me! i'll hold off merging until i can verify everything works as expected, which i'll do by way of implementing pm closing in cabal-cli using this branch's version of cabal-client; at the latest expect it next week :)

nicely done :>