diff sat/plugins/plugin_xep_0264.py @ 3314:5887fb414758

component file sharing: add/parse affiliation when possible
author Goffi <goffi@goffi.org>
date Fri, 17 Jul 2020 13:00:10 +0200
parents 4230aaeab9a7
children 15612c0fb421
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0264.py	Fri Jul 17 12:58:57 2020 +0200
+++ b/sat/plugins/plugin_xep_0264.py	Fri Jul 17 13:00:10 2020 +0200
@@ -84,7 +84,7 @@
 
     ## triggers ##
 
-    def _addFileThumbnails(self, file_elt, extra_args):
+    def _addFileThumbnails(self, client, file_elt, extra_args):
         try:
             thumbnails = extra_args["extra"][C.KEY_THUMBNAILS]
         except KeyError:
@@ -98,7 +98,7 @@
             thumbnail_elt["height"] = str(height)
         return True
 
-    def _getFileThumbnails(self, file_elt, file_data):
+    def _getFileThumbnails(self, client, file_elt, file_data):
         thumbnails = []
         for thumbnail_elt in file_elt.elements(NS_THUMBS, "thumbnail"):
             uri = thumbnail_elt["uri"]