component file sharing: add/parse affiliation when possible
This commit is contained in:
parent
cb49365811
commit
d7844a98b4
1 changed files with 110 additions and 39 deletions
|
|
@ -84,7 +84,7 @@ class XEP_0264(object):
|
|||
|
||||
## 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 @@ class XEP_0264(object):
|
|||
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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue