about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/xmpp/capabilities.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c
index ca09e703..e09270cb 100644
--- a/src/xmpp/capabilities.c
+++ b/src/xmpp/capabilities.c
@@ -310,8 +310,7 @@ caps_lookup(const char *const jid)
 gboolean
 caps_jid_has_feature(const char *const jid, const char *const feature)
 {
-    char *ver = g_hash_table_lookup(jid_to_ver, jid);
-    EntityCapabilities *caps = ver ? _caps_by_ver(ver) : _caps_by_jid(jid);
+    EntityCapabilities *caps = caps_lookup(jid);
 
     if (caps == NULL) {
         return FALSE;