mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:14:55 +00:00
Add a new tab to user page with room memberships (#73)
The admin API for user's room memberships is new in synapse v1.21.0. Co-authored-by: Michael Albert <37796947+awesome-michael@users.noreply.github.com>
This commit is contained in:
parent
f2a1275673
commit
706114a382
3 changed files with 46 additions and 0 deletions
|
|
@ -130,6 +130,18 @@ const resourceMap = {
|
|||
return json.total;
|
||||
},
|
||||
},
|
||||
joined_rooms: {
|
||||
map: jr => ({
|
||||
id: jr,
|
||||
}),
|
||||
reference: id => ({
|
||||
endpoint: `/_synapse/admin/v1/users/${id}/joined_rooms`,
|
||||
}),
|
||||
data: "joined_rooms",
|
||||
total: json => {
|
||||
return json.total;
|
||||
},
|
||||
},
|
||||
servernotices: {
|
||||
map: n => ({ id: n.event_id }),
|
||||
create: data => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue