Commit graph

877 commits

Author SHA1 Message Date
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
2f7a0b55d6 Format timestamps 2016-11-18 21:50:00 +01:00
AsamK
1bae3ba6f0 Update dependency 2016-11-14 13:25:30 +01:00
AsamK
197619f1c0 Handle AssertionError also when linking devices 2016-11-03 20:51:25 +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
293c176831 Format timestamps as ISO 8601 in UTC 2016-08-27 13:41:28 +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
a724251f8d Bugfix: don't decrease trustLevel when receiving messages 2016-08-20 16:26:45 +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
55d485de88 Add added timestamp to Identities 2016-07-14 16:20:27 +02:00
AsamK
f2c2597379 Implement trustLevel for IdentityKeys 2016-07-14 16:20:27 +02:00
AsamK
0f0d8a873a Improve return codes
Always return non-zero code, when sending failed

Fixes #22
2016-07-14 16:20:14 +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
2972dd27c1 Use name in groupInfo only if it's a group update
Signal-Android send an empty name instead of absent, with group quit messages
2016-06-19 21:13:24 +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
54558ae7fb Remove unused method 2016-06-19 15:08:57 +02:00
AsamK
4608fb433b Remove dependency on apache commons-io 2016-06-19 15:08:49 +02:00
AsamK
39687f9d87 Update Readme and fix help bug in Main 2016-05-19 18:00:16 +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