plugin XEP-0447: fix wrong element used during parsing

This commit is contained in:
Goffi 2026-07-04 12:56:53 +02:00
commit 1b747b6ee1

View file

@ -430,7 +430,7 @@ class XEP_0447:
# however that should be fixed in future version, and so we accept several
# <file-sharing> element in a message.
for file_sharing_elt in message_elt.elements(NS_SFS, "file-sharing"):
attachment = self.parse_file_sharing_elt(message_elt)
attachment = self.parse_file_sharing_elt(file_sharing_elt)
if any(
s.get(C.MESS_KEY_ENCRYPTED, False) for s in attachment["sources"]