summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0313
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0313')
-rw-r--r--sleekxmpp/plugins/xep_0313/mam.py1
-rw-r--r--sleekxmpp/plugins/xep_0313/stanza.py8
2 files changed, 2 insertions, 7 deletions
diff --git a/sleekxmpp/plugins/xep_0313/mam.py b/sleekxmpp/plugins/xep_0313/mam.py
index 15aee828..dbff46a2 100644
--- a/sleekxmpp/plugins/xep_0313/mam.py
+++ b/sleekxmpp/plugins/xep_0313/mam.py
@@ -36,6 +36,7 @@ class XEP_0313(BasePlugin):
register_stanza_plugin(Iq, stanza.MAM)
register_stanza_plugin(Iq, stanza.Preferences)
register_stanza_plugin(Message, stanza.Result)
+ register_stanza_plugin(stanza.Result, self.xmpp['xep_0297'].stanza.Forwarded)
register_stanza_plugin(stanza.MAM, self.xmpp['xep_0059'].stanza.Set)
def retrieve(self, jid=None, start=None, end=None, with_jid=None, ifrom=None,
diff --git a/sleekxmpp/plugins/xep_0313/stanza.py b/sleekxmpp/plugins/xep_0313/stanza.py
index a33c2e35..476cbbfb 100644
--- a/sleekxmpp/plugins/xep_0313/stanza.py
+++ b/sleekxmpp/plugins/xep_0313/stanza.py
@@ -122,10 +122,4 @@ class Result(ElementBase):
name = 'result'
namespace = 'urn:xmpp:mam:tmp'
plugin_attrib = 'mam_result'
- interfaces = set(['forwarded', 'queryid', 'id'])
-
- def get_forwarded(self):
- return self.parent()['forwarded']
-
- def del_forwarded(self):
- del self.parent()['forwarded']
+ interfaces = set(['queryid', 'id'])