Update MAM to use latest carbons.
This commit is contained in:
parent
23750357e2
commit
19b24b276d
2 changed files with 2 additions and 7 deletions
|
@ -36,6 +36,7 @@ class XEP_0313(BasePlugin):
|
||||||
register_stanza_plugin(Iq, stanza.MAM)
|
register_stanza_plugin(Iq, stanza.MAM)
|
||||||
register_stanza_plugin(Iq, stanza.Preferences)
|
register_stanza_plugin(Iq, stanza.Preferences)
|
||||||
register_stanza_plugin(Message, stanza.Result)
|
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)
|
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,
|
def retrieve(self, jid=None, start=None, end=None, with_jid=None, ifrom=None,
|
||||||
|
|
|
@ -122,10 +122,4 @@ class Result(ElementBase):
|
||||||
name = 'result'
|
name = 'result'
|
||||||
namespace = 'urn:xmpp:mam:tmp'
|
namespace = 'urn:xmpp:mam:tmp'
|
||||||
plugin_attrib = 'mam_result'
|
plugin_attrib = 'mam_result'
|
||||||
interfaces = set(['forwarded', 'queryid', 'id'])
|
interfaces = set(['queryid', 'id'])
|
||||||
|
|
||||||
def get_forwarded(self):
|
|
||||||
return self.parent()['forwarded']
|
|
||||||
|
|
||||||
def del_forwarded(self):
|
|
||||||
del self.parent()['forwarded']
|
|
||||||
|
|
Loading…
Reference in a new issue