Also include users' presence when responding to /rooms/:room_id/members/list

paul/schema_breaking_changes
Paul "LeoNerd" Evans 2014-08-15 16:47:50 +01:00
parent 3c532314ec
commit ec1fd20e59
1 changed files with 7 additions and 0 deletions

View File

@ -348,6 +348,13 @@ class RoomMemberListRestServlet(RestServlet):
room_id=urllib.unquote(room_id),
user_id=user.to_string())
for event in members["chunk"]:
target_user = self.hs.parse_userid(event["target_user_id"])
presence_state = yield self.handlers.presence_handler.get_state(
target_user=target_user, auth_user=user
)
event["content"].update(presence_state)
defer.returnValue((200, members))