Commit graph

61 commits

Author SHA1 Message Date
AsamK
f1d735f93d Update libsignal-service 2023-09-23 16:21:19 +02:00
AsamK
0c5993c0ad Add support for invalid pre key failure when sending message 2023-06-11 17:47:48 +02:00
AsamK
e5a67d6ce1 Refactor manager lib package structure 2023-05-23 19:34:13 +02:00
AsamK
91700ce995 Implement textStyles for sending and receiving
Fixes #1250
2023-05-20 12:49:57 +02:00
AsamK
8a31b7f2c1 Implement editing of previous messages 2023-05-11 19:10:29 +02:00
signals-from-outer-space
db42f61cbb Added missing file attachment attributes in JsonAttachment output
Closes #1217
Fixes #1216
2023-04-02 18:49:42 +02:00
ced-b
35def4445d
Fix handling of attachments in JSON RPC (#1109)
* Fix handling of attachments in JSON RPC

It turns out that using a custom serializer on an
input stream did not work well. For one the stream seems
to be getting closed before the JSON gets written. But
also the method for writing it was throwing an
UnsupportedOperationException further down in Jackson.

The above simplifies the matter by simply outputting the
Base64 string first and then setting it on the model.

* Add missing files to attachment fix

Co-authored-by: cedb <cedb@keylimebox.org>
2022-11-24 17:29:45 +01:00
AsamK
43face8ead Small improvements 2022-11-01 22:48:47 +01:00
ced-b
2e4d346bc8
Add command to get an attachment (#1080)
* Add command to get an attachment

* Refactor retrieving of attachments to use StreamDetails

* Refactor AttachmentCommand to GetAttachmentCommand

* Minor improvements to GetAttachmentCommand

* Use JSON serializer to serialize binary data

Serializing the stream is better for memory handling than
loading the whole thing into the file.

* Clean up unneeded class

* Added command to doc

Co-authored-by: cedb <cedb@keylimebox.org>
2022-11-01 22:47:43 +01:00
AsamK
7eb7ee44f2 Refactor RecipientAddress 2022-10-08 17:42:03 +02:00
AsamK
60ed2c292f Update libsignal-service-java 2022-09-17 11:26:44 +02:00
AsamK
a593051512 Implement receive handling for story messages 2022-08-09 23:20:12 +02:00
AsamK
b178c7c67a Implement sending link previews
Fixes #276
2022-05-25 23:23:33 +02:00
AsamK
a80e18169a Update libsignal-service-java 2022-05-14 15:51:23 +02:00
AsamK
2c15995289 Output RATE_LIMIT_FAILURE type more reliably in json output
Fixes #923
2022-04-06 22:35:51 +02:00
AsamK
942999b7b4 Update libsignal-service-java 2022-03-16 21:08:41 +01:00
AsamK
3c2fa65e05 Fix NoSuchElementException in json serialization for messages from an untrusted identity
Fixes #910
2022-03-16 19:37:58 +01:00
AsamK
7261129609 Rename error field in json receive response to exception 2022-02-19 18:47:11 +01:00
AsamK
5cccf52103 Cleanup manager package 2022-02-06 17:46:34 +01:00
AsamK
e284b99076 Refactor JsonMessageEnvelope to remove unnecessary number canonicalization 2022-01-29 15:05:14 +01:00
AsamK
beb3adcc72 Change stickerId to hex everywhere
Remove packKey from output
2022-01-03 17:51:04 +01:00
AsamK
62687d103f Replace collect(Collectors.toList()) with toList() 2021-12-11 13:10:39 +01:00
AsamK
06e93b84da Handle send failures as non fatal and return detailed results in json output
Fixes #348
2021-12-11 12:44:11 +01:00
AsamK
8867a7b9ee Convert RecipientAddress to record 2021-12-06 18:57:11 +01:00
AsamK
e83f43065e Remove dead code and fix inspection issues 2021-12-05 10:43:57 +01:00
technillogue
5cd5697aea
add JsonPayment (#808) 2021-11-23 08:14:01 +01:00
AsamK
fc8b6d0fcb Clean up base package 2021-11-14 15:00:06 +01:00
AsamK
32818a8608 Refactor ReceiveCommand in dbus mode and remove ExtendedDbusCommand 2021-11-06 21:09:06 +01:00
AsamK
2ab42ca547 Remove libsignal-service from manager lib API 2021-11-06 13:38:10 +01:00
AsamK
9075cc1a30 Refactor receive api 2021-11-06 12:17:50 +01: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
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
d72b838560 Refactor Manager interface 2021-09-28 21:13:02 +02:00
AsamK
8bcd8d87d2 Update libsignal-service-java 2021-08-29 13:37:24 +02:00
AsamK
467a48bac5 Add RecipientIdentifier as external Manager interface 2021-08-25 20:12:10 +02:00
AsamK
9a9dd3b217 Extend error information in json output for received messages from untrusted identity
Fixes #91
2021-08-22 19:28:13 +02:00
AsamK
5bbfd32598 Extend json output with number and uuid fields 2021-08-22 12:36:25 +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
30690785fd Update libsignal-service-java 2021-05-19 22:51:35 +02:00
AsamK
de273586b4 Use var instead of explicit types 2021-02-21 15:01:41 +01:00
AsamK
6c33a89f82 Reformat code 2021-02-19 18:04:08 +01:00
Atomic-Bean
237abe431b
Output "SharedContacts" field from a SignalDataMessage (#529)
* Initial version of SharedContacts from data message. Need to change location of avatar downloaded and fix plain text mode

* Made empty strings for json null and fixed plaintext output

* Removed old comments, simplified if-statement and added a 'leadingSpaces' field to the print attachments/mentions functions

* Added AsamK's changes
2021-02-19 18:03:15 +01:00
AsamK
c440520ea6 Ignore relay in json output if null 2021-01-17 12:36:11 +01:00
AsamK
a28ad7195c Add remote delete info to json output
Fixes #424
2021-01-17 11:57:46 +01:00
AsamK
3b29add396 Add typing message to json output
Fixes #423
2021-01-17 11:43:39 +01:00
AsamK
5a2c4b8dfd Add viewOnce boolean to json data message 2021-01-17 11:29:11 +01:00
AsamK
46a4c2c0d0 Make fields in json classes final and omit unnecessary nulls when serializing
Fix sender in sync read messages
2021-01-17 11:23:02 +01:00
AsamK
c588130491 Fix group info for json dbus messages 2021-01-16 20:12:24 +01:00
AsamK
9a775171b5 Replace Base64 class from libsignal with java.util.Base64 2021-01-15 22:32:13 +01:00