Commit graph

725 commits

Author SHA1 Message Date
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
c2ae0c17c2 Fix typos 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
edf5c9eb43 Use original bouncycastle instead of spongycastle
spongycastle is used by Signal-Android, because android has a crippled
bouncycastle. Spongycastle seems to have a problem with Oracle JDK 8.

Fixes #9
2016-04-03 14:08:46 +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
AsamK
0b6c09f883 Add rudimentary message receiving via dbus 2016-03-27 23:36:03 +02:00
AsamK
af8a27e87f Add timestamp to dbus MessageReceived signal 2016-03-27 23:35:36 +02:00
AsamK
dd934f1304 Reduce duplicate code 2016-03-27 23:34:59 +02:00
AsamK
083e33c4da Use e.printStackTrace() 2016-03-27 17:03:57 +02:00
AsamK
cc0177da10 Show source deviceId and relay, when receiving messages 2016-03-27 16:49:20 +02:00
AsamK
900b648f09 Refresh prekeys if there are less than 20 left on the server 2016-03-27 16:17:42 +02:00
AsamK
95278a95ce Use the old config directory .config/textsecure as fallback 2016-03-27 16:17:42 +02:00
AsamK
eabd361405 Rename to signal-cli
Changes experimental dbus interface from
org.asamk.TextSecure to org.asamk.Signal
2016-03-27 16:17:42 +02:00
AsamK
10719a443a Rename axolotl -> signalProtocol 2016-03-25 16:57:40 +01:00
AsamK
b06fafbf62 Update to signal-service-java 2.1.1 2016-03-25 16:50:51 +01:00
AsamK
0130585355 Make config path configurable 2015-12-31 16:16:18 +01:00
AsamK
43ec78594c Implement fetch messages
Uses a patched libtextsecure-java
https://github.com/AsamK/libtextsecure-java/commits/master
2015-12-31 13:17:41 +01:00
AsamK
239afa07e8 Handle DBusExecutionExceptions 2015-12-31 12:54:25 +01:00
AsamK
acadd90a6d Send Signal "MessageReceived" on dbus when receiving messages 2015-12-30 18:11:54 +01:00
AsamK
fb36613402 Use File() correctly 2015-12-30 18:11:54 +01:00
AsamK
3d56067272 Fix exceptions to work over dbus 2015-12-30 17:39:07 +01:00
AsamK
61392fd17d Take dbus name only when the service is ready 2015-12-16 21:38:32 +01:00
AsamK
27d9424f1e Rename package 2015-12-13 11:06:10 +01:00
AsamK
5859e7b9f7 Add possibility to send messages via dbus daemon 2015-12-12 22:56:30 +01:00
AsamK
a69e8facd2 Inline unnecessary methods 2015-12-12 22:09:51 +01:00
AsamK
208e12bdc6 Always call save() after modifying something 2015-12-12 22:09:06 +01:00
AsamK
9a1b348ed2 Implement daemon mode with dbus interface 2015-12-12 21:30:24 +01:00
AsamK
845e93ec0f Cleanup 2015-12-12 20:05:44 +01:00
AsamK
80cc0cad92 Fix build with Java 7 2015-12-12 20:05:14 +01:00
AsamK
ef5d3a65f8 Refactoring, move more functionality into Manager 2015-12-12 11:38:15 +01:00
AsamK
4b5bfcba80 Extract getTextSecureAttachments method 2015-12-10 21:42:44 +01:00
AsamK
c1abc12907 Check if the username is a valid phone number with country code 2015-12-06 17:22:39 +01:00
AsamK
b6684906fc Fix groups for upgraded clients 2015-12-06 15:45:31 +01:00
AsamK
fb862e4dde Implement updateGroup 2015-11-26 17:02:28 +01:00
AsamK
1689dfcb38 Implement quitGroups 2015-11-26 15:02:16 +01:00
AsamK
09decf7916 Implement sending EndSession messages 2015-11-26 14:38:47 +01:00
AsamK
2c6796e3ce Move endsession and attachment handling to Manager 2015-11-26 14:17:32 +01:00
AsamK
2517919c49 Enable sending to groups 2015-11-25 14:39:33 +01:00
AsamK
c41ac8e7a3 Store group info in json 2015-11-25 14:39:33 +01:00
AsamK
d0dae4e064 Fix NPE when not specifying receive timeout 2015-11-25 14:39:33 +01:00
AsamK
6208eb72d8 Increase timeout 2015-11-25 12:58:52 +01:00
AsamK
c5b884f62b Show GroupInfo of messages, if present 2015-11-21 19:01:14 +01:00
AsamK
96bd68e034 Add commandline option to specify receive timeou 2015-11-21 18:05:34 +01:00
AsamK
1781984221 Fix formatting 2015-10-06 21:45:39 +02:00
AsamK
2c86b0bd9a Remove last remnants of org.json 2015-10-06 21:42:08 +02:00
xardas
4d83d2168a Make Json store use Jackson instead of Gson (as it's already linked)
Closes #4
2015-10-06 21:39:12 +02:00
AsamK
ae8479df8c Fix formatting of attachment size 2015-10-06 19:05:15 +02:00
AsamK
685e431ca0 Add -v and --version command line arguments
Only works running from a jar file
2015-09-22 14:45:52 +02:00
AsamK
ab25003061 Add version to user agent string 2015-09-22 14:44:11 +02:00