From 19b24b276d2d4591f5ee852d98966518d46ce7d3 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 12 Sep 2013 10:32:19 -0700 Subject: Update MAM to use latest carbons. --- sleekxmpp/plugins/xep_0313/mam.py | 1 + sleekxmpp/plugins/xep_0313/stanza.py | 8 +------- 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']) -- cgit v1.2.3