plugin attach, aesgcm: attachments refactoring:

attachment handling has been simplified, and now use a "register" method similar as the
ones used for download or upload.
A default method (for unencrypted messages) will try a simple upload and will copy the
links to body.

AESGCM plugin has been adapted to be used for encrypted files. If more than one file is
sent with AESGCM plugin, they will be split in several messages as current de-facto
standard (OMEMO media sharing) doesn't support several files per message.
This commit is contained in:
Goffi 2020-03-18 20:25:02 +01:00
commit 06516eeb1d

View file

@ -141,7 +141,6 @@ class XEP_0363(object):
filename = filename or os.path.basename(filepath)
size = os.path.getsize(filepath)
size_adjust = []
#: this trigger can be used to modify the requested size, it is notably useful
#: with encryption. The size_adjust is a list which can be filled by int to add