diff options
author | mathieui <mathieui@mathieui.net> | 2022-02-06 17:38:45 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2022-02-06 17:38:45 +0100 |
commit | 9735b6d6dc5ff6b5d577d2ba7511d74a9de99f38 (patch) | |
tree | 47a920e94db822e14bec023f951ca538e392f1cc | |
parent | 911cf335a12e662e781f1d8adff418c81e43a22d (diff) | |
download | poezio-9735b6d6dc5ff6b5d577d2ba7511d74a9de99f38.tar.gz poezio-9735b6d6dc5ff6b5d577d2ba7511d74a9de99f38.tar.bz2 poezio-9735b6d6dc5ff6b5d577d2ba7511d74a9de99f38.tar.xz poezio-9735b6d6dc5ff6b5d577d2ba7511d74a9de99f38.zip |
fix: remove fixes.has_identity which is now unused
-rw-r--r-- | poezio/fixes.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/poezio/fixes.py b/poezio/fixes.py index a8282006..2d5107fb 100644 --- a/poezio/fixes.py +++ b/poezio/fixes.py @@ -15,20 +15,6 @@ import logging log = logging.getLogger(__name__) -def has_identity(xmpp, jid, identity, on_true=None, on_false=None): - def _cb(iq): - ident = lambda x: x[0] - res = identity in map(ident, iq['disco_info']['identities']) - if res and on_true is not None: - on_true() - if not res and on_false is not None: - on_false() - - asyncio.create_task( - xmpp.plugin['xep_0030'].get_info(jid=jid, callback=_cb) - ) - - def _filter_add_receipt_request(self, stanza): """ Auto add receipt requests to outgoing messages, if: |