Commit graph

725 commits

Author SHA1 Message Date
AsamK
782f96b580 Replace UnregisteredUserException 2021-10-31 20:43:29 +01:00
AsamK
659761f006 Add InactiveGroupLinkException 2021-10-31 19:45:30 +01:00
AsamK
3cf7721cd7 Add InvalidDeviceLinkException exception 2021-10-31 19:35:00 +01:00
AsamK
d783df510a Add Pair record 2021-10-31 19:15:52 +01:00
AsamK
1e87240db8 Use java.util.Optional in Manager interface 2021-10-31 18:01:17 +01:00
AsamK
f39983f78a Add new dbus message received signals with extendable extras map 2021-10-31 12:40:21 +01:00
AsamK
204aa31885 Refactor dbus receive message handler 2021-10-30 13:30:58 +02:00
John Freed
cb70209c60 Implement viewedReceipt
commit cd29144e81
Merge: 14532be f884175
Author: AsamK <asamk@gmx.de>
Date:   Sat Oct 30 12:46:59 2021 +0200

    Merge branch 'master' into dbus_sendviewed

commit 14532befde
Author: John Freed <okgithub@johnfreed.com>
Date:   Thu Oct 7 08:24:00 2021 +0200

    update deliveryReceipt to conform

commit a9a6edaf3f
Author: John Freed <okgithub@johnfreed.com>
Date:   Thu Oct 7 07:40:20 2021 +0200

    implement viewedReceipt

    for Dbus and Json -- note that this changes the JsonReceiptMessage
    structure

    update documentation

Closes #764
2021-10-30 12:54:41 +02:00
AsamK
1fae09433d Improve dbus error handling
Fixes #787
2021-10-27 20:00:36 +02:00
AsamK
ce7aa580b6 Use record classes 2021-10-27 14:39:40 +02:00
AsamK
ce70a623c2 Use Java 17 2021-10-27 14:39:40 +02:00
AsamK
b07200342a Use challenge captchas for proof required exception 2021-10-24 19:32:13 +02:00
AsamK
9b102c49d0 Adapt behavior of receive command as dbus client to match normal mode 2021-10-24 19:16:35 +02:00
AsamK
fc0a9b4102 Move receive thread handling to manager 2021-10-22 17:39:33 +02:00
AsamK
5c389c875d Split receiveMessages method 2021-10-21 21:19:14 +02:00
AsamK
430c155f7e Fix comment 2021-10-21 21:02:02 +02:00
AsamK
f5ba7894ae Add setIgnoreAttachments method 2021-10-21 21:01:48 +02:00
AsamK
3b685190a8 Add missing unexport groups call 2021-10-15 21:00:21 +02:00
AsamK
f094cd6806 Extract IdentityHelper 2021-10-12 22:14:39 +02:00
AsamK
997b3c6a2a Restrict blocking of group to master device 2021-10-12 20:57:25 +02:00
AsamK
997b4f0c3f Implement new dbus group interface 2021-10-09 17:41:23 +02:00
AsamK
b5d4a5000b Add DeviceNotFound Error 2021-10-09 17:04:17 +02:00
AsamK
179855272a Fix dbus properties GetAll method for variants 2021-10-07 20:56:29 +02:00
AsamK
c56a8df9b2 Return struct instead of object path directly for dbus list devices 2021-10-07 20:56:29 +02:00
AsamK
7829a8d631 Fix device id type 2021-10-07 20:56:29 +02:00
John Freed
d4838bd646
implement DBus submitRateLimitChallenge method (#763)
update documentation
2021-10-07 07:46:15 +02:00
AsamK
778adacb80 Refactor dbus linked devices interface
Export a separate dbus object for each device
2021-10-02 18:04:30 +02:00
AsamK
1548ce9c79 Add helper classes for exporting dbus properties 2021-10-02 17:16:08 +02:00
AsamK
6f5e72119e Implement configuration handling
Closes #747
2021-09-30 21:41:24 +02:00
AsamK
c9f5550d18 Remove workaround for getBoolean from JsonRpcLocalCommand 2021-09-30 19:36:31 +02:00
AsamK
593cd7d8ca Refactor dbus client mode to improve maintainability 2021-09-28 22:33:35 +02:00
AsamK
d72b838560 Refactor Manager interface 2021-09-28 21:13:02 +02:00
AsamK
7c9fd9d0fb Refactor NoteToSelf to singleton class 2021-09-28 21:13:02 +02:00
AsamK
4acab9043c Reformat code 2021-09-28 18:42:05 +02:00
John Freed
ba817e2ae4
Implement Dbus updateProfile with givenName (#734)
two versions of updateProfile implemented:
- one with givenName and familyName
- one with just name

update documentation
2021-09-28 18:41:10 +02:00
AsamK
375c9d60cf Refactor isRegistered 2021-09-26 21:49:36 +02:00
John Freed
1c4a32fef4
implement Dbus isRegistered() methods (#729)
* implement Dbus isRegistered() methods

isRegistered(number<s>) returns a boolean

isRegistered(numbers<as>) returns an array of Booleans

* Dbus isRegistered() methods

restore isRegistered() and respond to other requests by AsamK
2021-09-26 20:09:57 +02:00
AsamK
df8dd54791 Reformat code 2021-09-26 09:27:55 +02:00
John Freed
e78463ea0a
implement Dbus updateAccount and listDevices (#730)
* implement Dbus updateAccount and listDevices

implement updateAccount(deviceName<s>) to change device name

implement listDevices

update documentation

* implement Dbus addDevice and removeDevice

update documentation as well

* Dbus add/remove/list/update devices

modifications responding to requests by AsamK

* Dbus incorporating InvalidUri error

Co-authored-by: AsamK <asamk@gmx.de>
2021-09-26 09:26:12 +02:00
John Freed
d47574351e
implement Dbus setExpirationTimer (#735)
implement method

update documentation
2021-09-26 09:04:40 +02:00
John Freed
8bee08fd96
implement Dbus sync methods (#737)
implement two Dbus methods:
- sendContacts
- sendSyncRequest

update documentation
2021-09-26 09:00:26 +02:00
John Freed
1ca0e75ef1
implement Dbus stickerpack method (#740)
implement uploadStickerPack

update documentation
2021-09-26 08:59:38 +02:00
AsamK
982e887c9f Reformat code 2021-09-21 22:30:27 +02:00
John Freed
d622967192
Implement Dbus setPin and removePin (#733)
and update documentation
2021-09-21 22:26:26 +02:00
JtheSaw
11b3758416
Add sendTyping and sendReceipt to dbus interface (#718)
* Add sendTyping and sendReceipt to dbus interface

* Resolve requested changes

* Adapt documentation
2021-09-13 17:01:26 +02:00
AsamK
f48593f265 Exit immediately if an uncaught error is thrown on the main thread 2021-09-12 14:37:56 +02:00
AsamK
62d8873a92 Request message resend if incoming message can't be decrypted 2021-09-12 13:21:48 +02:00
AsamK
6ac4af4974 Fix plain text output for getUserStatus command
Fixes #711
2021-09-10 17:24:28 +02:00
AsamK
50e5acdf52 Fix printing proof required error
libsignal-service classifies it as network failure as well.
2021-09-10 10:13:51 +02:00
AsamK
eee140f74f Add submitRateLimitChallenge command
Related #708
2021-09-09 19:20:48 +02:00