Add list of client connections per user (#26)
List the result of GET /_synapse/admin/v1/whois/<user_id>.
This commit is contained in:
parent
dfc643a10f
commit
7ef6bc05c6
5 changed files with 87 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue