mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:04:55 +00:00
Add a new tab to rooms with forward extremities (#107)
Add a new tab to rooms with forward extremities.
This commit is contained in:
parent
229518e456
commit
3ea1f51eb5
5 changed files with 89 additions and 0 deletions
|
|
@ -208,6 +208,22 @@ const resourceMap = {
|
|||
return json.total;
|
||||
},
|
||||
},
|
||||
forward_extremities: {
|
||||
map: fe => ({
|
||||
...fe,
|
||||
id: fe.event_id,
|
||||
}),
|
||||
reference: id => ({
|
||||
endpoint: `/_synapse/admin/v1/rooms/${id}/forward_extremities`,
|
||||
}),
|
||||
data: "results",
|
||||
total: json => {
|
||||
return json.count;
|
||||
},
|
||||
delete: params => ({
|
||||
endpoint: `/_synapse/admin/v1/rooms/${params.id}/forward_extremities`,
|
||||
}),
|
||||
},
|
||||
room_directory: {
|
||||
path: "/_matrix/client/r0/publicRooms",
|
||||
map: rd => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue