telepathy-gabble: use GetContactAttributes() to get contact caps
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Fri Oct 11 14:58:34 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: 13f3aec21c14c6a9379424ed974b4e2ce4a5e95b
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=13f3aec21c14c6a9379424ed974b4e2ce4a5e95b
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Wed Oct 9 11:49:34 2013 -0400
use GetContactAttributes() to get contact caps
---
tests/twisted/caps_helper.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/caps_helper.py b/tests/twisted/caps_helper.py
index fdecfa2..b5579a2 100644
--- a/tests/twisted/caps_helper.py
+++ b/tests/twisted/caps_helper.py
@@ -316,7 +316,11 @@ def presence_and_disco(q, conn, stream, contact, disco,
return h
def get_contacts_capabilities_sync(conn, contacts):
- return conn.ContactCapabilities.GetContactCapabilities(contacts)
+ h2asv = conn.Contacts.GetContactAttributes(contacts, [cs.CONN_IFACE_CONTACT_CAPS], False)
+ ret = {}
+ for h in contacts:
+ ret[h] = h2asv[h][cs.ATTR_CONTACT_CAPABILITIES]
+ return ret
def send_presence(q, conn, stream, contact, caps, initial=True, show=None):
h = conn.get_contact_handle_sync(contact)
More information about the telepathy-commits
mailing list