diff options
author | mathieui <mathieui@mathieui.net> | 2021-01-30 12:26:20 +0100 |
---|---|---|
committer | Link Mauve <linkmauve@linkmauve.fr> | 2021-02-03 15:22:09 +0100 |
commit | 184f354e8dac7b49243a1069b9f43c54f4bbe26c (patch) | |
tree | 395374d8025b3f06397d4b5decfd27c7d5195a86 /poezio/fixes.py | |
parent | 341c770b362e5d5fe070429969de136e7b23c10a (diff) | |
download | poezio-184f354e8dac7b49243a1069b9f43c54f4bbe26c.tar.gz poezio-184f354e8dac7b49243a1069b9f43c54f4bbe26c.tar.bz2 poezio-184f354e8dac7b49243a1069b9f43c54f4bbe26c.tar.xz poezio-184f354e8dac7b49243a1069b9f43c54f4bbe26c.zip |
muc: remove get_room_form hack and callbacks
Diffstat (limited to 'poezio/fixes.py')
-rw-r--r-- | poezio/fixes.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/poezio/fixes.py b/poezio/fixes.py index a9e15dee..8e6c7921 100644 --- a/poezio/fixes.py +++ b/poezio/fixes.py @@ -26,23 +26,6 @@ def has_identity(xmpp, jid, identity, on_true=None, on_false=None): xmpp.plugin['xep_0030'].get_info(jid=jid, callback=_cb) -def get_room_form(xmpp: ClientXMPP, room: str, callback: Callable[[Iq], Any]): - def _cb(result): - if result["type"] == "error": - return callback(None) - xform = result.xml.find( - '{http://jabber.org/protocol/muc#owner}query/{jabber:x:data}x') - if xform is None: - return callback(None) - form = xmpp.plugin['xep_0004'].build_form(xform) - return callback(form) - - iq = xmpp.make_iq_get(ito=room) - query = ET.Element('{http://jabber.org/protocol/muc#owner}query') - iq.append(query) - iq.send(callback=_cb) - - def _filter_add_receipt_request(self, stanza): """ Auto add receipt requests to outgoing messages, if: |