Added a function to get current MAM preferences.
This commit is contained in:
parent
2638ba2744
commit
85cd7a9166
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