diff sat/plugins/plugin_xep_0363.py @ 3219:2ba602aef90e

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.
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2020 20:25:02 +0100
parents 883fb4981958
children 163014f09bf4
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0363.py	Wed Mar 18 19:56:05 2020 +0100
+++ b/sat/plugins/plugin_xep_0363.py	Wed Mar 18 20:25:02 2020 +0100
@@ -141,7 +141,6 @@
         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