Commit graph

283 commits

Author SHA1 Message Date
AsamK
8d55dfb66b Use pattern matching switch cases 2023-10-24 17:36:32 +02:00
AsamK
fc2e9bbfae Fix inspections 2023-10-17 20:34:21 +02:00
AsamK
d51dd7ae57 Use .isEmpty() for checking lists and strings 2023-10-17 20:34:21 +02:00
AsamK
24069c8277 Update documentation 2023-10-15 22:37:46 +02:00
AsamK
7cd24a74af Improve handling of CDSI resource exhaustion 2023-10-15 19:02:59 +02:00
AsamK
33c4e17c0d Implement change phone number
Closes #1240
2023-10-14 23:37:23 +02:00
AsamK
56ee173d03 Implement exit code for rate limiting error
Closes #1240
2023-10-13 19:36:58 +02:00
AsamK
7b5b5776f0 Add --quote-attachment paramter to send command
Fixes #1318
2023-10-10 19:54:45 +02:00
AsamK
90ec01bfbf Only output username if set 2023-10-04 17:10:16 +02:00
AsamK
a7a5947a1b Implement multi-account mode for jsonRpc command
Fixes #1319
2023-09-01 12:11:38 +02:00
AsamK
c8daef5113 Add --receive-mode parameter to jsonRpc command 2023-09-01 12:08:56 +02:00
AsamK
6d23eb3bf6 Show better error message when using addDevice on a linked device 2023-08-21 17:14:04 +02:00
AsamK
e867c57af8 Add addStickerPack command 2023-08-20 22:36:18 +02:00
AsamK
ac815f7598 Fix json deserialization for request params
Fixes #1261
2023-06-17 12:59:55 +02:00
AsamK
4f8da7819e Reformat code 2023-06-05 19:30:18 +02:00
AsamK
106af6a801 Refactor trust command implementation 2023-06-03 16:10:47 +02:00
AsamK
a7db3a5610 Extract dbus client command handling 2023-06-02 22:43:18 +02:00
AsamK
ff162cb44d Refactor addDeviceLink method 2023-05-23 19:34:13 +02:00
AsamK
e5a67d6ce1 Refactor manager lib package structure 2023-05-23 19:34:13 +02:00
AsamK
a754eb6faf Better logging for registration failure 2023-05-21 11:15:49 +02:00
AsamK
314b3cafbb Refactor selfNumber in send command 2023-05-20 13:01:54 +02:00
AsamK
91700ce995 Implement textStyles for sending and receiving
Fixes #1250
2023-05-20 12:49:57 +02:00
AsamK
8a31b7f2c1 Implement editing of previous messages 2023-05-11 19:10:29 +02:00
AsamK
842f13b2fc Update libsignal-service-java 2023-04-16 21:19:17 +02:00
AsamK
9f60ed534a Implement support for usernames 2023-04-03 19:00:05 +02:00
AsamK
276ecef300 Update libsignal-service-java
- Use session based number verification and registration
2023-04-01 12:19:53 +02:00
ced-b
35def4445d
Fix handling of attachments in JSON RPC (#1109)
* Fix handling of attachments in JSON RPC

It turns out that using a custom serializer on an
input stream did not work well. For one the stream seems
to be getting closed before the JSON gets written. But
also the method for writing it was throwing an
UnsupportedOperationException further down in Jackson.

The above simplifies the matter by simply outputting the
Base64 string first and then setting it on the model.

* Add missing files to attachment fix

Co-authored-by: cedb <cedb@keylimebox.org>
2022-11-24 17:29:45 +01:00
AsamK
5771bb858f Allow using data URIs for updateGroup/updateProfile avatars
Fixes #1082
2022-11-14 19:31:40 +01:00
AsamK
e6cf11cb3d Add missing check to httpAddres 2022-11-03 15:10:17 +01:00
AsamK
c628e27d2e Update man page 2022-11-02 17:46:20 +01:00
ced-b
1ad0e94b64
Exposing Signal CLI as HTTP Server (#1078)
* Add initial proof of concept for http server

* Add support for registration commands

* Add support  for MultiLocalCommands

* Improve handling of HTTP responses

Makes it so that responses area all uniformly JSON and wrapped
into the proper response envelope.

* Add caching for workflows

* Run http server with daemon command

This fits the existing command line API better

* Wrap the existing JSON RPC handler in HTTP Service

This is a redesign of earlier attempts to make an HTTP service. Fixing
that service turned out that it would have to be a copy of the
SignalJsonRpcDispatcherHandler. So instead of copy pasting all the
code the existing service is simply being wrapped.

* Switch http server to use command handler

* Clean up and simplification

* Pass full InetSocketAddress

* Minor fixes and improvements

Based on code review.

Co-authored-by: cedb <cedb@keylimebox.org>
2022-11-02 17:44:12 +01:00
AsamK
43face8ead Small improvements 2022-11-01 22:48:47 +01:00
ced-b
2e4d346bc8
Add command to get an attachment (#1080)
* Add command to get an attachment

* Refactor retrieving of attachments to use StreamDetails

* Refactor AttachmentCommand to GetAttachmentCommand

* Minor improvements to GetAttachmentCommand

* Use JSON serializer to serialize binary data

Serializing the stream is better for memory handling than
loading the whole thing into the file.

* Clean up unneeded class

* Added command to doc

Co-authored-by: cedb <cedb@keylimebox.org>
2022-11-01 22:47:43 +01:00
AsamK
9096229637 Improve behavior with synchronous and asynchronous receivers 2022-11-01 13:58:09 +01:00
AsamK
175057e781 Implement receive command for JSON-RPC mode
The command returns a list of messages, as soon as the timeout is reached
after the last message has been received or the maximum number of messages
has been received.
2022-10-31 11:56:25 +01:00
AsamK
de2bfc7f79 Add optional message limit for receive command 2022-10-31 11:17:52 +01:00
AsamK
5ed9db4f08 Implement replying to stories 2022-10-30 18:18:21 +01:00
AsamK
fea19c9e20 Implement reacting to stories 2022-10-30 14:41:02 +01:00
AsamK
e63f2fafb9 Add color to listContacts output
Fixes #1072
2022-10-28 20:12:11 +02:00
AsamK
9ffacfe90e Add --ignore-stories flag to prevent receiving story messages 2022-10-19 19:11:37 +02:00
AsamK
7eb7ee44f2 Refactor RecipientAddress 2022-10-08 17:42:03 +02:00
AsamK
489fb2ac22 Improve error message when joining a group with already pending admin approval 2022-10-07 19:31:27 +02:00
AsamK
2c586266ff Disallow sending an empty message
It would be ignored by the offical apps anyway
2022-08-28 16:04:05 +02:00
AsamK
4120630309 Remove fallback to reading stdin if no message body is given
To read a message from stdin, use the `--message-from-stdin` flag
2022-08-28 16:04:05 +02:00
AsamK
0c4a037dde Move identity store to database 2022-08-28 16:04:05 +02:00
AsamK
c487929bcd Make version command work on the command line 2022-06-12 17:29:20 +02:00
AsamK
5b5a1718e9 Update register error message 2022-06-07 11:53:53 +02:00
AsamK
3ad87e1362 Reformat 2022-06-06 17:13:41 +02:00
Kevin
cb5e3c6bf7
Added base64 encoded attachment support (#966)
* Added base64 encoded attachment support

* Added final

* Added full RFC 2397 support

* Added feedback

* Update doc

* Update signal-cli.1.adoc

Co-authored-by: Sebastian Scheibner <asamk@gmx.de>
2022-06-04 11:11:35 +02:00
AsamK
badbb55ef2 Split given/family name in updateContact command 2022-05-29 22:21:24 +02:00