Commit graph

415 commits

Author SHA1 Message Date
AsamK
f5e5dd551d Extract ReceiveHelper 2021-12-30 22:44:38 +01:00
AsamK
c7a7d00da5 Refactor Context to create helpers lazily 2021-12-30 22:02:03 +01:00
AsamK
c88c92086e Add UnregisteredRecipientException 2021-12-30 17:15:49 +01:00
AsamK
a7ecb9e10f Extract RecipientHelper 2021-12-30 17:15:49 +01:00
AsamK
d28b6522d5 Update dependencies 2021-12-30 17:15:49 +01:00
AsamK
a738fb725b Adapt log levels 2021-12-30 13:30:05 +01:00
AsamK
e3fcc9b3ba Add additional logging 2021-12-30 11:53:22 +01:00
AsamK
fba7a6a75c Paralellize profile fetching 2021-12-26 17:14:06 +01:00
AsamK
3b81ba3596 Move saving out of synchronized block 2021-12-26 12:40:06 +01:00
AsamK
c66f92d488 Update libsignal-service-java 2021-12-26 09:28:53 +01:00
AsamK
a0593f4031 Disable unidentified access for recipient if it fails once 2021-12-25 16:19:21 +01:00
AsamK
ceb6084eda Throw unregistered exception in getRegisteredUser 2021-12-25 16:13:07 +01:00
AsamK
7c9839b114 Improve error handling for profile fetching 2021-12-25 16:12:38 +01:00
AsamK
6dc8435fa1 Optimize getAccessFor method 2021-12-25 16:07:27 +01:00
AsamK
7e803dfc46 Log profile decryption failure 2021-12-25 16:06:33 +01:00
AsamK
f03df0a8c0 Update handling of unrestricted unidentified sender access.
Fixes #843
2021-12-25 16:06:12 +01:00
AsamK
88ea61e28f Start preKeyIds with a random number
Fixes #842
2021-12-23 18:26:09 +01:00
AsamK
8cd8016c3d Add logging for executing action 2021-12-23 18:22:14 +01:00
AsamK
6fcec33ab6 Add error message when creating sende keys path fails 2021-12-23 13:43:53 +01:00
AsamK
bddff2cb88 Save account file after adding distribution ids 2021-12-22 19:19:50 +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
4aa8e3f2f2 Catch all exceptions when deserializig session records 2021-12-22 11:19:22 +01:00
AsamK
00b3be044e Send typing messages with sender keys 2021-12-20 18:46:03 +01:00
AsamK
172011234b Retry failed messages after trusting a new identity 2021-12-20 17:48:36 +01:00
AsamK
71e0c3f80c Use Duration for timeout 2021-12-20 16:12:37 +01:00
AsamK
dc2470d046 Don't store default values of group blocked/permissionDenied 2021-12-20 14:38:48 +01:00
AsamK
baed2b7ead Implement simple handling of incoming decryption error message 2021-12-20 14:38:48 +01:00
AsamK
1f48ce1f39 Implementing sending group messages with sender keys 2021-12-20 14:38:48 +01:00
AsamK
c134f1b78e Update libsignal-service-java 2021-12-20 14:38:48 +01:00
AsamK
d21f9cf029 Improve profile fetching 2021-12-20 14:04:07 +01:00
AsamK
6bdfa11b66 Prevent NPE if no locale is configured
Fixes #833
2021-12-15 21:54:53 +01:00
AsamK
62687d103f Replace collect(Collectors.toList()) with toList() 2021-12-11 13:10:39 +01:00
AsamK
ceafe96e81 Include recipient identifier in send error message 2021-12-10 20:21:14 +01:00
AsamK
0bd142ab6b Update bouncycastle 2021-12-10 17:55:34 +01:00
AsamK
c3f0539526 Update libsignal-service-java 2021-12-08 22:31:49 +01:00
AsamK
10df4338b1 Improve behavior of changed recipient id 2021-12-07 00:02:24 +01:00
AsamK
bbe74ef020 Always use correct recipientId after recipients were merged 2021-12-06 19:37:14 +01:00
AsamK
9c811ecc02 Extend logging in RecipientStore 2021-12-06 19:18:18 +01:00
AsamK
8867a7b9ee Convert RecipientAddress to record 2021-12-06 18:57:11 +01:00
AsamK
c9928043b2 Copy managers list to prevent ConcurrentModificationException 2021-12-05 15:32:42 +01:00
AsamK
16bf7af297 Remove jackson from lib's api 2021-12-05 15:32:42 +01:00
AsamK
a5013dd08d Close account if user is not registered 2021-12-05 15:32:42 +01:00
AsamK
124d10d6f8 Fix issue when loading a legacy account file without aci 2021-12-05 12:01:12 +01:00
AsamK
c8b9ab1911 Improve handling of unregistered account 2021-12-05 12:00:31 +01:00
AsamK
e92d37e3a5 Cache group credentials in memory 2021-12-05 11:00:22 +01:00
AsamK
e83f43065e Remove dead code and fix inspection issues 2021-12-05 10:43:57 +01:00
AsamK
855d06dc76 Fix to always update recipientsMerged map when merging recipients 2021-12-03 14:25:07 +01:00
AsamK
f487af5b0c Add Automatic-Module-Name for manager lib 2021-11-28 16:56:05 +01:00
AsamK
7e7e4150e1 Add removeContact command
Closes #335
2021-11-26 20:50:54 +01:00
technillogue
5cd5697aea
add JsonPayment (#808) 2021-11-23 08:14:01 +01:00