signal-cli icon indicating copy to clipboard operation
signal-cli copied to clipboard

Expose a way to retrieve a user profile avatar pic

Open idifrancesco opened this issue 3 years ago • 2 comments

I easily wrote by myself a new JsonRpcLocalCommand calling: https://github.com/AsamK/signal-cli/blob/4ffb93129d4db8327c37f9383b55d5cd5b2f3ac9/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java#L319 to achieve the goal in the title. However it could be useful that the feature be supported by developers.

idifrancesco avatar Jan 24 '22 11:01 idifrancesco

I've extended the listContacts command to include more profile information in json mode. The avatar is not included there, but is just stored in the signal-cli config directory (avatars/profile-NUMBER).

In json-rpc mode would you just need the filename to the avatar or the actual avatar image in base64 encoding?

AsamK avatar May 21 '22 09:05 AsamK

Just filename would be great.

idifrancesco avatar May 26 '22 07:05 idifrancesco

Calling listContacts with any recipient then retrieving the avatar file into avatars/profile-NUMBER directory is what i need. Thanks.

idifrancesco avatar Jan 20 '23 13:01 idifrancesco