Commit graph

765 commits

Author SHA1 Message Date
John Freed
c77b2e9511 extend DBus signals for DbusAttachments
This change creates the DBus signals `SyncMessageReceivedV2` and `MessageReceivedV2`, as well as the new data type `DbusAttachment`.

    A DbusAttachment is a struct that contains considerably more information than the filename.

    To maintain backward compatibility, `SyncMessageReceived` and `MessageReceived` remain unchanged.

    V2 includes Mentions and DbusAttachments.

    This change also permits sending arbitrary URLs as attachment names.
2021-08-13 10:11:44 +02:00
0b11001111
114b932386 extend DBus signals with a field for mentions
This change affects the DBus signals `SyncMessageReceived` and `MessageReceived`.
Mentions are represented as an array of structs.
Each mention holds the name of the mentioned user, its position and
length.
2021-08-13 09:14:50 +02:00
John Freed
58d55ef807 implement setExpirationTimer for DBus clients 2021-08-12 14:48:18 +02:00
John Freed
5059925b22 Revert "track attachment data (#671 and #316)"
This reverts commit 8aed357994.
2021-08-12 14:38:47 +02:00
John Freed
0f437dbfd1 implement setExpirationTimer for DBus clients 2021-08-12 10:14:26 +02:00
John Freed
fcb604c29b temporarily remove setExpirationTimer to allow cherry-pick 2021-08-12 10:13:36 +02:00
John Freed
33bb95e13f implement isRegistered methods for DBus clients
in Signal.java:
+    boolean isRegistered(String number)
+    List<Boolean> isRegistered(List<String> numbers)
2021-08-12 09:53:38 +02:00
John Freed
022cb969f6 temporarily remove isRegistered to allow cherry-pick 2021-08-12 09:52:28 +02:00
John Freed
f70507ca24 modify DBus SignalControl
remove listAccounts() from methods available to DBus clients, because it returns a list of "DBusPath" objects, which DBus itself cannot handle
add getObjectPath, because it is already implemented in DbusSignalControlImpl.java
2021-08-12 09:13:35 +02:00
John Freed
2e82a12bbf implement methods for DBus clients
in Signal.java:
+    String getObjectPath()
+    List<String> listDevices()
+    void updateAccount()
+    List<String> listIdentity(String number)
2021-08-12 09:03:59 +02:00
John Freed
29aea22ff1 Merge branch 'master' into dbus 2021-08-11 07:31:31 +02:00
John Freed
da28e62974 implement isRegistered() method for DBus 2021-08-11 07:10:27 +02:00
John Freed
8aed357994 track attachment data (#671 and #316)
create new DbusAttachment type
allow URLs for --attachment option
update manpage
update wiki with signalmail
implement setExpirationTimer() for DBus
implement isRegistered() for DBus
add sendNoteToSelfMessageWithDBusAttachments
add sendGroupMessageWithDBusAttachments
add sendMessageWithDBusAttachments
bump version
2021-08-11 07:08:43 +02:00
AsamK
0bbd75c469 Implement JsonRpc command for remoteDelete and sendReaction 2021-08-10 18:51:48 +02:00
AsamK
b24fa98e3c Implement JsonRpc command for quitGroup 2021-08-10 18:51:48 +02:00
AsamK
7b809c6547 Implement JsonRpc command for joinGroup 2021-08-10 18:51:48 +02:00
AsamK
5d8d0dcad6 Implement JsonRpc command for commands without output 2021-08-10 18:51:48 +02:00
AsamK
6826e3cb49 Implement JsonRpc command for updateGroup
Co-authored-by: technillogue <technillogue@gmail.com>

Closes #666
2021-08-10 18:51:48 +02:00
AsamK
b09677a46c fix 2021-08-10 18:51:48 +02:00
AsamK
a8bbdb54d0 Implement jsonRpc command
Co-authored-by: technillogue <technillogue@gmail.com>

Closes #668
2021-08-10 18:16:50 +02:00
AsamK
6c00054407 Replace --group parameter with --group-id 2021-08-10 14:34:22 +02:00
AsamK
15e8029715 Add PlainTextWriter interface 2021-08-09 19:03:59 +02:00
AsamK
641dc7577c Rename --endsession parameter to --end-session 2021-08-09 17:42:34 +02:00
AsamK
8f781c019f Add dbus SignalControl interface to register/verify/link accounts 2021-08-08 18:43:14 +02:00
AsamK
48b2c7ff8a Refactor output writers 2021-08-08 17:32:55 +02:00
AsamK
f449a242e4 Remove fallbacks to deprecated data paths 2021-08-08 15:52:54 +02:00
AsamK
17d00d6ca8 Remove deprecated --json parameter 2021-08-08 10:44:23 +02:00
AsamK
54f7bc5d79 Bump version 2021-08-07 10:22:55 +02:00
AsamK
dde98e9b06 Update bouncycastle 2021-08-07 10:22:30 +02:00
AsamK
8dced20b0f Make name optional for updateContact
Fixes #676
2021-08-05 18:00:05 +02:00
AsamK
b1ebdc8343 Extract decryptProfileIfKeyKnown helper method 2021-07-31 22:19:31 +02:00
AsamK
07893546d0 Add hint to sticker upload error message 2021-07-31 22:19:31 +02:00
technillogue
9e72248e1b
update Graal reflect config with legacy classes (#667) 2021-07-24 09:58:29 +02:00
technillogue
8cc4877627
Include source name in JSON output (#663)
* add sourceName

* avoid sourceName might not have been initialized

* catch NullPointerException instead of checking for null

* Update JsonMessageEnvelope.java

Co-authored-by: AsamK <asamk@gmx.de>
Fixes #663
2021-07-23 17:19:09 +02:00
AsamK
dedbafb99a Bump version 2021-06-20 14:33:04 +02:00
exquo
f1d6890da4
Add README note about glibc version requirement for libsignal-client (#647)
Ref #643
2021-06-17 16:11:56 +02:00
AsamK
ca3871e223 Handle missing captcha parameter correctly
Fixes #644
2021-06-15 23:15:36 +02:00
AsamK
a0f04a9bc1 Bump version 2021-06-13 15:39:50 +02:00
AsamK
2d068997c5 Implement sticker pack retrieval
Fixes #410
2021-06-13 15:02:16 +02:00
AsamK
f40c351662 Add optional content type to json sticker pack manifest 2021-06-13 14:32:58 +02:00
AsamK
0b2d37fe68 Rename method parameter 2021-06-13 14:32:58 +02:00
AsamK
5e50a4cc4a Use correct hex implementation 2021-06-13 14:32:58 +02:00
AsamK
7e223dc228 Add sendTyping command
Fixes #602
2021-06-12 17:57:15 +02:00
AsamK
609ebf024b Update libsignal-service-java 2021-06-12 16:22:51 +02:00
AsamK
ec3d2346ef Strip url scheme from captcha string 2021-06-12 16:22:51 +02:00
AsamK
87406e2cdb Implement --delete flag for quitGroup
Closes #638
2021-06-12 11:33:19 +02:00
AsamK
d1e760f447 Reformat code 2021-06-12 08:53:37 +02:00
AsamK
795b73df87 Skip invalid contact records 2021-06-12 08:49:37 +02:00
AsamK
0001a9b300 Skip invalid group records
Fixes #642
2021-06-12 08:47:18 +02:00
AsamK
39c4cf24b8 Refresh group if group update conflicts with remote edit
Fixes #639
2021-06-02 20:40:02 +02:00