Commit graph

52 commits

Author SHA1 Message Date
AsamK
0a68303ca4 Add command to update account attributes
This can fix problems with receiving messages, if for some reason, the
fetchesMessages property of the server is set incorrectly.
2017-02-18 12:35:32 +01:00
AsamK
be963ed49b Add unregister command
Fixes #57
2017-02-18 12:35:32 +01:00
AsamK
7ccfa26746 Update dependencies 2017-01-28 10:50:19 +01:00
AsamK
6411b09aab Update dependencies 2017-01-10 20:46:46 +01:00
AsamK
d89e93ad47 Add --ignore-attachments flag to receive and daemon command
Fixes #41
2016-12-22 12:27:55 +01:00
AsamK
447a188ff9 Use try-with-ressource statements instead of manually closing stream 2016-11-29 11:15:27 +01:00
AsamK
c5cf78a50a Allow millisecond timeouts 2016-11-28 12:38:43 +01:00
AsamK
2351a89b00 Use nio Files.delete instead of File.delete everywhere 2016-11-28 12:28:44 +01:00
Benedikt Constantin Radtke
e364610c93 use java7's nio api to get more detailed error messages 2016-11-28 10:36:10 +01:00
AsamK
eb0860d350 Add another missing close() 2016-11-26 13:42:29 +01:00
AsamK
5b839bbae0 Fix crash when receiving group request for unkown group
Fixes #33
2016-11-26 13:26:04 +01:00
AsamK
c542fb87cb Add missing close of attachment input stream 2016-11-26 12:44:17 +01:00
AsamK
8bfef24ef7 Support sending and receiving group info requests 2016-11-25 14:03:58 +01:00
AsamK
82cecfff85 Implement support for sending disappearing messages
Stores the expiration timeout received from contacts in the config file

Fixes #27
2016-10-31 21:18:35 +01:00
AsamK
a4e22539a3 Cleanup 2016-10-31 21:18:35 +01:00
AsamK
93e2c58fcf Fix typo 2016-10-31 17:51:05 +01:00
AsamK
6c9f26f49b Split load function 2016-10-27 16:03:20 +02:00
AsamK
f97b0c0faa Add support for new safety numbers, that replace the hex fingerprint 2016-10-27 14:09:22 +02:00
AsamK
e4618456a1 Add support for contact color sync and receiving blocklists and expiring messages 2016-08-27 13:22:11 +02:00
AsamK
b2289568ef Retry decrypting of messages from previously untrusted keys
Decrypts messages from untrusted keys, if they are trusted now
2016-08-20 16:26:37 +02:00
AsamK
5ee375c74d Store encrypted messages on disk when receiving them
- Acknowledge to the server only after the message is stored.
- Delete the message when decrypting was successful
2016-08-20 16:01:31 +02:00
AsamK
6a9f791f0d Check if number is registered on Signal before adding to group
Fixes #15
2016-08-13 13:42:56 +02:00
AsamK
1efdf04394 Prevent sending to groups that the user has quit
Fixes #23
2016-08-12 18:24:30 +02:00
AsamK
ee5062a2cc Create config directory/files as only user readable
Directories are created with mode 700, files with 600

Fixes #21
2016-07-20 23:11:52 +02:00
AsamK
f095d947f8 Implement listIdentities and trust commands
Print the fingerprints of all known phone numbers and can set their trust
2016-07-14 16:21:05 +02:00
AsamK
bfb51e414b Store untrusted identities in identityKeyStore 2016-07-14 16:20:27 +02:00
AsamK
9f075da269 Prevent NullPointerException when sending sync groups
ContentType was null, if it could not be determined
2016-07-14 16:07:34 +02:00
AsamK
c0a0f89896 Improve exception handling 2016-07-13 17:27:06 +02:00
AsamK
74fb7d9377 Fix typo 2016-07-08 11:35:19 +02:00
AsamK
c5ac72a9a5 Lock config file
Fixes #19
2016-07-07 01:06:08 +02:00
AsamK
7ce080b6db Don’t remove self from group when sending group messages 2016-06-28 12:35:18 +02:00
AsamK
b1f0d40d44 Fix creating groups
Fixes #16
2016-06-28 00:14:15 +02:00
AsamK
3e2024ff0a Add avatar image storage
Group and contact avatars are now stored in the avatars subfolder
of the settings path:
- contact-NUMBER
- group-GROUP_ID
2016-06-19 20:58:01 +02:00
AsamK
9427616906 Improve internal group handling for receiving 2016-06-19 18:33:24 +02:00
AsamK
d9b082a59e Show the contact name when receiving messages
Works only if the contact is stored in the config file already
2016-06-19 15:40:32 +02:00
AsamK
32beb8a0bd Implement a contacts store and contacts sync 2016-04-22 21:17:02 +02:00
AsamK
46befdd638 Don't save if username is null 2016-04-16 15:07:49 +02:00
AsamK
15568512b1 Fix addDevice 2016-04-16 15:07:35 +02:00
AsamK
08a217108a Implement removing linked devices
Only allowed from the master device
2016-04-16 15:03:23 +02:00
AsamK
17ff7531d4 Add method to list linked devices 2016-04-16 14:36:56 +02:00
AsamK
800b92c4ba Always save when sending messages 2016-04-16 14:15:36 +02:00
AsamK
5c1127ced6 Remove own number from group when quitting 2016-04-16 14:15:25 +02:00
AsamK
3cc5704406 Remove own number when sending group messages 2016-04-16 14:15:06 +02:00
AsamK
0ad42a72ab Implement requesting/sending groups when linking device 2016-04-16 13:32:21 +02:00
AsamK
947818d317 Add possiblity to add new device, as master 2016-04-16 13:32:21 +02:00
AsamK
33956bde62 Implement device linking 2016-04-16 13:32:21 +02:00
AsamK
5c117bd863 Correctly use API for sending non group messages
is necessary so the correct sync messages are generated
for linked accounts
2016-04-08 23:36:43 +02:00
AsamK
aa8a23aceb Handle received sync messages 2016-04-08 23:36:43 +02:00
AsamK
9d18b01d85 Fix registering
Only query prekeys count if registration is complete
2016-04-03 14:28:24 +02:00
AsamK
f479cffc9f Set user-agent null if PROJECT_NAME is null
the name is only set if the code is run from a jar file
2016-04-02 22:57:13 +02:00