Commit graph

508 commits

Author SHA1 Message Date
John Freed
d7f1e1df51 add some debugging messages 2021-08-16 20:41:01 +02:00
John Freed
621bdc1492 restore "lost" files: DbusAttachment.java and DbusMention.java 2021-08-15 18:12:35 +02:00
John Freed
2e7f4c7085 implement Dbus commands
* String link()
* String link(String newDeviceName)
* void register(String number, boolean voiceVerification)
* void registerWithCaptcha(String number, boolean voiceVerification, String captcha)
* void verify(String number, String verificationCode)
* void verifyWithPin(String number, String verificationCode, String pin)

make dataPath and serviceEnvironment public from App class

make USER_AGENT ("signal-cli") public from BaseConfig class

add timeout error handling to finishDeviceLink method

update DBus documentation
2021-08-15 18:09:06 +02:00
John Freed
76406367ea DBus methods
implement expanded updateGroup

allow group commands to use Base64 strings as group identifiers
* setGroupBlocked
* getGroupName
* getGroupMembers
* sendGroupMessage
* sendGroupMessageReaction
* updateGroup

update AvatarStore to make some methods public or static

reuse UpdateGroupCommand code

update DBus documentation
2021-08-15 09:41:29 +02:00
John Freed
908deb43c5 add getBase64GroupIds method for DBus 2021-08-14 09:56:24 +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
8dced20b0f Make name optional for updateContact
Fixes #676
2021-08-05 18:00:05 +02:00
AsamK
07893546d0 Add hint to sticker upload error message 2021-07-31 22:19:31 +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
ca3871e223 Handle missing captcha parameter correctly
Fixes #644
2021-06-15 23:15:36 +02:00
AsamK
0b2d37fe68 Rename method parameter 2021-06-13 14:32:58 +02:00
AsamK
7e223dc228 Add sendTyping command
Fixes #602
2021-06-12 17:57:15 +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
a257a2f7b5 Add dbus signal handler on specific object
Otherwise the messages from all exported objects would be received

Fixes #635
2021-05-31 19:07:30 +02:00
AsamK
a70dfdc8b8 Fix error message 2021-05-28 18:09:41 +02:00
AsamK
cfc818872f Add hint that messages must be regularly received 2021-05-24 12:18:33 +02:00
AsamK
b8a0901fbd Improve command line help
Fixes #450
2021-05-20 20:54:11 +02:00
AsamK
30690785fd Update libsignal-service-java 2021-05-19 22:51:35 +02:00
AsamK
f445cfb5c1 Include proof required information in sending error 2021-05-16 16:53:04 +02:00
AsamK
2016cf2a5f Fix camel case device-id flag 2021-05-16 16:11:55 +02:00
AsamK
81ee2c2d2b Update group with remaining options, after creating it 2021-05-15 18:26:45 +02:00
AsamK
ea633efc9c Prevent last admin from leaving group 2021-05-15 18:05:07 +02:00
AsamK
78f22c7020 Implement setting group permissions 2021-05-15 17:04:22 +02:00
AsamK
7170a68571 Implement setting expiration timer for groups 2021-05-15 17:04:22 +02:00
AsamK
03589f858b Implement configuring of group link 2021-05-15 17:04:22 +02:00