diff options
Diffstat (limited to 'slixmpp/plugins/xep_0184')
-rw-r--r-- | slixmpp/plugins/xep_0184/stanza.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0184/stanza.py b/slixmpp/plugins/xep_0184/stanza.py index 16a640e7..03a0ff9c 100644 --- a/slixmpp/plugins/xep_0184/stanza.py +++ b/slixmpp/plugins/xep_0184/stanza.py @@ -32,7 +32,7 @@ class Request(ElementBase): def get_request_receipt(self): parent = self.parent() - if parent.find("{%s}request" % self.namespace) is not None: + if parent.xml.find("{%s}request" % self.namespace) is not None: return True else: return False @@ -63,7 +63,7 @@ class Received(ElementBase): def get_receipt(self): parent = self.parent() - xml = parent.find("{%s}received" % self.namespace) + xml = parent.xml.find("{%s}received" % self.namespace) if xml is not None: return xml.attrib.get('id', '') return '' |