Add list of client connections per user (#26)

List the result of GET /_synapse/admin/v1/whois/<user_id>.
This commit is contained in:
dklimpel 2020-03-28 21:25:34 +01:00 committed by Manuel Stahl
parent dfc643a10f
commit 7ef6bc05c6
5 changed files with 87 additions and 19 deletions

View file

@ -44,6 +44,14 @@ const resourceMap = {
return json.total_rooms;
},
},
connections: {
path: "/_synapse/admin/v1/whois",
map: c => ({
...c,
id: c.user_id,
}),
data: "connections",
},
};
function filterNullValues(key, value) {