AsamK / signal-cli

signal-cli provides an unofficial commandline, JSON-RPC and dbus interface for the Signal messenger.
GNU General Public License v3.0
3.22k stars 306 forks source link

Username support for updateGroup and updateContact #1625

Open loxK opened 1 week ago

loxK commented 1 week ago

updateContact and updateGroup do not support usernames. I configured my personal account to only work using the username. As a result signal-cli replies with an "is not registered" error when I use the phone number. I thus have to use the username. And it works fort sending messages.

I am now trying to add myself to a group :

signal-cli -a "[redacted]" updateGroup -n "[redacted]" --username="[redacted]"
signal-cli: error: unrecognized arguments: '--username=[redacted]'

I thought I could modify the contact adding the phone number and then use the phone number as I have it in my contacts :

# signal-cli listContacts
Number:  ACI: [redacted] Name:  Profile name:  Username: [redacted] Color:  Blocked: false Message expiration: disabled

But I found no way to modify the contact to add the phone number.