Commit graph

791 commits

Author SHA1 Message Date
John Freed
e193bafb8c uploadStickerPath returns String
also, any zip file must be in the same directory as the manifest.json

update documentation
2021-08-20 06:42:56 +02:00
John Freed
d8e5ab5f20 update doc for uploadStickerPack for dbus 2021-08-19 23:46:03 +02:00
John Freed
c4bb5f9849 Merge branch 'master' into dbus_methods 2021-08-19 11:25:42 +02:00
John Freed
0691a91dad Dbus methods isMember and isAdmin
create isAdmin method in parallel with isMember
extend both to have the ability to add or remove members or admins

update documentation
2021-08-19 11:19:08 +02:00
John Freed
217afd74c4 Dbus functions for groups
Dbus functions that take a groupId or base64GroupId as input now throw a Failure exception if the string is malformed.

group Dbus functions now return a GroupNotFound exception (instead of an empty or false result with no exception) if the group is not found

implemented new Dbus methods
+ getGroupAdminMembers
+ getGroupPendingMembers
+ getGroupRequestingMembers
+ getGroupInviteUri

updated documentation
2021-08-19 00:09:02 +02:00
AsamK
e00eaf10e8 Adapt User-Agent string to get rate limit challenges 2021-08-18 19:37:03 +02:00
John Freed
b846fbe764 update documentation 2021-08-18 11:25:30 +02:00
John Freed
c39b5450ff implement uploadStickerPack for Dbus; fix isRegistered error
Note: isRegistered (and related methods) for Dbus can throw an
InvalidNumberException when the phone number is incorrectly formatted.
Previously this led to uncaught exceptions. They are now handled.
The problem is in SignalServiceAccountManager.java in the
package org.whispersystems.signalservice.api, which ignores the
first character of a proposed phone number and checks that the
rest is a legitimate int64.

updated documentation
2021-08-18 10:43:26 +02:00
John Freed
663f6f6e73 implement Dbus methods
sendContacts
sendSyncRequest
trust

update documentation
2021-08-18 07:44:44 +02:00
John Freed
21db752d28 implement sendTyping for Dbus
update documentation
2021-08-17 22:10:32 +02:00
John Freed
545eec12d8 Dbus methods
implement setPin and removePin
implement unregister (which kills the daemon upon success)
updateProfile now implements given name and family name (as well as the former method with just a name)

update documentation
2021-08-17 19:37:18 +02:00
John Freed
da1bb918bf implement Dbus addDevice and removeDevice methods
update documentation
2021-08-17 16:12:28 +02:00
John Freed
bc3f8803dc more debug message cleanup 2021-08-17 11:03:14 +02:00
John Freed
26a3bc1481 more debug messages 2021-08-17 06:52:31 +02:00
John Freed
49c21a522f Merge branch 'master' into dbus_methods 2021-08-17 06:16:23 +02:00
John Freed
d7f1e1df51 add some debugging messages 2021-08-16 20:41:01 +02:00
AsamK
89d498f87d Update README.md 2021-08-16 19:55:30 +02:00
AsamK
7089912fb0 Remove registrationLockV1 code
The corresponding endpoint has been removed on the Signal server
2021-08-15 21:30:21 +02:00
AsamK
dbfa8bb66b Update graalvm-config 2021-08-15 21:29:26 +02:00
AsamK
28f735741a Fix JsonRpcLocalCommand interface 2021-08-15 21:20:26 +02:00
AsamK
b810e303ec Update libsignal-service-java 2021-08-15 21:04:03 +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
AsamK
7ea3900854 Update CHANGELOG.md 2021-08-15 16:05:52 +02:00
John Freed
661d78e4a8 update Dbus documentation 2021-08-15 10:01:22 +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
technillogue
0c070b9719
add reflection config for v1 groups (#683) 2021-08-14 09:26:43 +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