From 206d46ac2ae5b6068849c52c57a2a991fbc930ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 13 May 2018 13:03:19 +0200 Subject: [PATCH] xep_0384: fix element interface; attach to the correct element --- stanza.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stanza.py b/stanza.py index e8a4f2d..6865e0b 100644 --- a/stanza.py +++ b/stanza.py @@ -7,6 +7,7 @@ """ from slixmpp import Message +from slixmpp.plugins.xep_0060.stanza.pubsub import Item from slixmpp.plugins.xep_0060.stanza.pubsub_event import EventItem from slixmpp.xmlstream import register_stanza_plugin, ElementBase @@ -80,7 +81,7 @@ class SignedPreKeyPublic(ElementBase): namespace = OMEMO_BASE_NS name = 'signedPreKeyPublic' plugin_attrib = name - interfaces = {'id'} + interfaces = {'signedPreKeyId'} class SignedPreKeySignature(ElementBase): @@ -121,7 +122,7 @@ register_stanza_plugin(Encrypted, Payload) register_stanza_plugin(EventItem, Devices) register_stanza_plugin(Devices, Device, iterable=True) -register_stanza_plugin(EventItem, Bundle) +register_stanza_plugin(Item, Bundle) register_stanza_plugin(Bundle, SignedPreKeyPublic) register_stanza_plugin(Bundle, SignedPreKeySignature) register_stanza_plugin(Bundle, IdentityKey)