summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-10 17:38:25 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-11 11:51:57 +0200
commitedb66cf55a57476f549c49830d0add36cb9e02cb (patch)
treeac03a2d2591963cd45cb5caf4973a8fa6e44152f
parent68f8a01b0d03ddac1cca102283c79fac907fa388 (diff)
Add handle-name to RoomList properties
Fixes fdo#65614
-rw-r--r--src/idle-roomlist-channel.c1
-rw-r--r--tests/twisted/channels/room-list-channel.py2
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