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:
parent
4ccd859b62
commit
06516eeb1d
1 changed files with 162 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue