mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
Merge branch 'master' of github.com:matrix-org/synapse into sql_refactor
This commit is contained in:
commit
40c020ad13
1 changed files with 7 additions and 0 deletions
|
@ -351,6 +351,13 @@ class RoomMemberListRestServlet(RestServlet):
|
||||||
room_id=urllib.unquote(room_id),
|
room_id=urllib.unquote(room_id),
|
||||||
user_id=user.to_string())
|
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))
|
defer.returnValue((200, members))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue