* 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>
* 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>
commit cd29144e81
Merge: 14532bef884175
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
* 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