telepathy-gabble: stop using RequestHandles() for contacts

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Fri Oct 4 03:59:17 PDT 2013


Module: telepathy-gabble
Branch: master
Commit: 0bb2d9bbf532caba9fe040c125417b23bc2999e5
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=0bb2d9bbf532caba9fe040c125417b23bc2999e5

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu Oct  3 14:27:39 2013 +0200

stop using RequestHandles() for contacts

---

 tests/twisted/muc/name-conflict.py      |    4 ++--
 tests/twisted/muc/test-muc-ownership.py |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/muc/name-conflict.py b/tests/twisted/muc/name-conflict.py
index e476fd7..2aee8d2 100644
--- a/tests/twisted/muc/name-conflict.py
+++ b/tests/twisted/muc/name-conflict.py
@@ -184,8 +184,8 @@ def test_gtalk_weirdness(q, bus, conn, stream, room_jid):
     # resources of the same contact. There is no race between this method
     # returning and MembersChangedDetailed firing, because libdbus reorders
     # messages when you make blocking calls.
-    handle, handle_, handle__, foobar_handle = conn.RequestHandles(
-        cs.HT_CONTACT, jids + ['%s/foobar_gmail.com' % room_jid])
+    handle, handle_, handle__, foobar_handle = conn.get_contact_handles_sync(
+        jids + ['%s/foobar_gmail.com' % room_jid])
 
     q.expect('dbus-signal', signal='MembersChangedDetailed',
         predicate=lambda e: e.args[0:4] == [[foobar_handle], [], [], []])
diff --git a/tests/twisted/muc/test-muc-ownership.py b/tests/twisted/muc/test-muc-ownership.py
index fae3046..655e93f 100644
--- a/tests/twisted/muc/test-muc-ownership.py
+++ b/tests/twisted/muc/test-muc-ownership.py
@@ -62,7 +62,7 @@ def test(q, bus, conn, stream):
     added = event.args[1]
 
     [test, bob, brian, che, che_owner, chris, chris_owner] = \
-        conn.RequestHandles(cs.HT_CONTACT,
+        conn.get_contact_handles_sync(
             [ 'chat at conf.localhost/test', 'chat at conf.localhost/bob',
               'chat at conf.localhost/brian', 'chat at conf.localhost/che',
               'che at foo.com', 'chat at conf.localhost/chris', 'chris at foo.com',



More information about the telepathy-commits mailing list