telepathy-idle: Add handle-name to RoomList properties
Xavier Claessens
xclaesse at kemper.freedesktop.org
Tue Jun 11 04:03:29 PDT 2013
Module: telepathy-idle
Branch: master
Commit: edb66cf55a57476f549c49830d0add36cb9e02cb
URL: http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=edb66cf55a57476f549c49830d0add36cb9e02cb
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date: Mon Jun 10 17:38:25 2013 +0200
Add handle-name to RoomList properties
Fixes fdo#65614
---
src/idle-roomlist-channel.c | 1 +
tests/twisted/channels/room-list-channel.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/idle-roomlist-channel.c b/src/idle-roomlist-channel.c
index 4dc53d1..183e696 100644
--- a/src/idle-roomlist-channel.c
+++ b/src/idle-roomlist-channel.c
@@ -325,6 +325,7 @@ _rpl_list_handler (IdleParser *parser,
}
keys = tp_asv_new (
+ "handle-name", G_TYPE_STRING, room_name,
"name", G_TYPE_STRING, room_name,
"members", G_TYPE_UINT, num_users,
"subject", G_TYPE_STRING, topic,
diff --git a/tests/twisted/channels/room-list-channel.py b/tests/twisted/channels/room-list-channel.py
index 7a7934f..6200904 100644
--- a/tests/twisted/channels/room-list-channel.py
+++ b/tests/twisted/channels/room-list-channel.py
@@ -22,7 +22,7 @@ def check_rooms(received_rooms):
for r in TEST_CHANNELS:
if r[0] == info['name']:
found = True
- assert r[1] == info['members'] and r[2] == info['subject']
+ assert r[1] == info['members'] and r[2] == info['subject'] and r[0] == info['handle-name']
break;
assert found
return True
More information about the telepathy-commits
mailing list