Add a new tab to user page with pushers (#85)

* Add a new tab to user page with pushers

* Update pushers `total` and `id`
This commit is contained in:
Dirk Klimpel
2021-02-11 20:37:20 +01:00
committed by GitHub
parent 425c210cfc
commit f2a1275673
5 changed files with 69 additions and 0 deletions

View File

@@ -117,6 +117,19 @@ const resourceMap = {
return json.total;
},
},
pushers: {
map: p => ({
...p,
id: p.pushkey,
}),
reference: id => ({
endpoint: `/_synapse/admin/v1/users/${id}/pushers`,
}),
data: "pushers",
total: json => {
return json.total;
},
},
servernotices: {
map: n => ({ id: n.event_id }),
create: data => ({