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:
commit
d57fbb57a2
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue