mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:14:55 +00:00
Add a new tab to rooms with state events (#108)
Co-authored-by: Michael Albert <37796947+awesome-michael@users.noreply.github.com>
This commit is contained in:
parent
2ab4343970
commit
2cdd41b615
6 changed files with 76 additions and 4 deletions
|
|
@ -117,6 +117,19 @@ const resourceMap = {
|
|||
return json.total;
|
||||
},
|
||||
},
|
||||
room_state: {
|
||||
map: rs => ({
|
||||
...rs,
|
||||
id: rs.event_id,
|
||||
}),
|
||||
reference: id => ({
|
||||
endpoint: `/_synapse/admin/v1/rooms/${id}/state`,
|
||||
}),
|
||||
data: "state",
|
||||
total: json => {
|
||||
return json.state.length;
|
||||
},
|
||||
},
|
||||
pushers: {
|
||||
map: p => ({
|
||||
...p,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue