isamert / scli

a simple terminal user interface for signal messenger (using signal-cli)
GNU General Public License v3.0
432 stars 40 forks source link

History storage for multiple accounts #172

Open exquo opened 2 years ago

exquo commented 2 years ago

Scli can be run with different --usernames (accounts / phone numbers), but maintains a single history file in ~/.local/share/scli/history. This jumbles histories from different accounts together.

One solution is to put the account-specific data (history, attachments) in sub-directories: ~/.local/share/scli/+123456789, etc.

exquo commented 2 years ago

Additional enhancement: implement per-account config files. This should be in addition to --config-file, so that the right file is automatically checked based on the account's phone number.

exquo commented 2 years ago

Related: signal-cli saves attachments for all accounts in the same dir, https://github.com/AsamK/signal-cli/issues/298#issuecomment-912973504