Commit graph

616 commits

Author SHA1 Message Date
AsamK
942999b7b4 Update libsignal-service-java 2022-03-16 21:08:41 +01:00
AsamK
3c2fa65e05 Fix NoSuchElementException in json serialization for messages from an untrusted identity
Fixes #910
2022-03-16 19:37:58 +01:00
AsamK
bf2a83755e Mark --target-timestamp flag as required for sendReceipt command
Fixes #901
2022-03-02 22:45:26 +01:00
AsamK
ec945cd227 Add --message-from-stdin flag for send command 2022-02-20 14:22:53 +01:00
AsamK
1ffb6d6907 Handle UnsupportedOperationException in daemon command 2022-02-20 14:22:53 +01:00
AsamK
7261129609 Rename error field in json receive response to exception 2022-02-19 18:47:11 +01:00
AsamK
3f582e9c2e Prevent a stale jsonrpc connection from interfering with message receiving
Fixes #893
2022-02-19 18:47:11 +01:00
AsamK
ccce539843 Improve error messages when daemon is already running 2022-02-13 20:08:30 +01:00
AsamK
bb3b9692e3 Implement basic listAccounts for dbus client mode
Fixes #891
2022-02-12 11:20:05 +01:00
AsamK
f207c2abc3 Reexport dbus objects when self number changes 2022-02-11 21:03:54 +01:00
AsamK
0476895c3d Store account list in accounts.json file 2022-02-11 21:03:54 +01:00
AsamK
ff6b733cd0 Add SignalAccountFiles as a central entry point 2022-02-11 21:03:54 +01:00
AsamK
6dabf4550b Fix type of device id to Integer
Fixes #889
2022-02-11 21:03:54 +01:00
AsamK
8e773d92c1 Align receive timeout behavior for dbus client with cli and JSON-RPC
Timeout is reset by every incoming message
2022-02-06 19:33:50 +01:00
AsamK
5cccf52103 Cleanup manager package 2022-02-06 17:46:34 +01:00
AsamK
be0993c5d8 Improve JSON-RPC subscribeReceive method with subscription id 2022-02-01 20:59:49 +01:00
AsamK
e284b99076 Refactor JsonMessageEnvelope to remove unnecessary number canonicalization 2022-01-29 15:05:14 +01:00
AsamK
380c892e24 Add more informative thread names 2022-01-29 15:05:14 +01:00
AsamK
2e74acaabe Add --log-file parameter to write logs to separate file
Use logback for more control over the log output

Fixes #845
2022-01-29 15:05:08 +01:00
AsamK
5d23b1ed9d Improve error handling of getUserStatus command for invalid phonen numbers 2022-01-23 20:51:10 +01:00
AsamK
80befec589 Make deviceId an int 2022-01-22 16:41:00 +01:00
AsamK
7b2b258b1d Update year 2022-01-16 10:45:36 +01:00
AsamK
3587d1c397 Rename sandbox to staging environment
To match the upstream name
2022-01-05 23:41:17 +01:00
AsamK
8a5f98dac6 Add sticker pack url to list output 2022-01-03 18:50:27 +01:00
AsamK
beb3adcc72 Change stickerId to hex everywhere
Remove packKey from output
2022-01-03 17:51:04 +01:00
AsamK
e70463d7b8 Implement listStickerPacks command 2022-01-03 16:11:03 +01:00
AsamK
404063a080 Add support for sending stickers 2022-01-03 13:24:13 +01:00
AsamK
69ea12b956 Mark isRegistered() dbus method as deprecated
It always return true.
2022-01-02 17:52:40 +01:00
AsamK
541ac777bc Improve pin failure message in dbus mode 2022-01-02 17:52:20 +01:00
AsamK
805f976d9e Implement multi account commands for dbus client 2022-01-02 17:31:12 +01:00
AsamK
ffcda46c31 Extract AccountHelper 2021-12-31 16:19:12 +01:00
AsamK
c88c92086e Add UnregisteredRecipientException 2021-12-30 17:15:49 +01:00
AsamK
1e8c5eb522 Add additional log verbosity levels 2021-12-30 12:03:41 +01:00
AsamK
e3fcc9b3ba Add additional logging 2021-12-30 11:53:22 +01:00
AsamK
f7b2916618 Align dbus handling of no account parameter with normal mode 2021-12-26 12:30:02 +01:00
AsamK
c2801c447d Return unknown version if project version is not available 2021-12-22 19:19:19 +01:00
AsamK
f9ecaa8ad6 Add workaround for jsonrpc clients that send null params 2021-12-22 19:18:42 +01:00
AsamK
9a72733c4f Improve exit code for message sending
Exit with 0 status code if the message was sent successfully to at least
one recipient, otherwise exit with status code 2 or 4 (for untrusted).

Fixes #828
2021-12-22 12:47:42 +01:00
AsamK
71e0c3f80c Use Duration for timeout 2021-12-20 16:12:37 +01:00
AsamK
1c9d16e199 Improve error handling for tcp address parsing 2021-12-16 21:10:15 +01:00
AsamK
d248f249e3 Implement more methods for DbusManagerImpl 2021-12-11 20:01:36 +01:00
AsamK
d9c8711eb0 Implement sendGroupTying dbus method 2021-12-11 19:38:06 +01:00
AsamK
62687d103f Replace collect(Collectors.toList()) with toList() 2021-12-11 13:10:39 +01:00
AsamK
06e93b84da Handle send failures as non fatal and return detailed results in json output
Fixes #348
2021-12-11 12:44:11 +01:00
AsamK
ceafe96e81 Include recipient identifier in send error message 2021-12-10 20:21:14 +01:00
AsamK
e9caf21bd3 Print uuid in listIdentities command if number unknown 2021-12-07 00:02:47 +01:00
AsamK
8867a7b9ee Convert RecipientAddress to record 2021-12-06 18:57:11 +01:00
AsamK
c3a9022bec Add debug log when reading message from stdin 2021-12-05 16:26:18 +01:00
AsamK
a53bb1c4c6 Adapt error message for multi-account only commands 2021-12-05 16:08:14 +01:00
AsamK
6c1013b024 Improve error message when an account is already in use 2021-12-05 12:00:49 +01:00