Merge branch 'mam' into 'master'

Added a function in xep313 plugin to get current MAM preferences.

See merge request poezio/slixmpp!19
This commit is contained in:
Maxime Buquet 2019-07-22 22:05:05 +02:00
commit d57fbb57a2

View file

@ -90,6 +90,13 @@ class XEP_0313(BasePlugin):
return iq.send(timeout=timeout, callback=wrapped_cb)
def get_preferences(self, timeout=None, callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'get'
query_id = iq['id']
iq['mam_prefs']['query_id'] = query_id
return iq.send(timeout=timeout, callback=callback)
def set_preferences(self, jid=None, default=None, always=None, never=None,
ifrom=None, block=True, timeout=None, callback=None):
iq = self.xmpp.Iq()