Add a new tab to rooms with forward extremities (#107)

Add a new tab to rooms with forward extremities.
This commit is contained in:
Dirk Klimpel
2021-05-08 19:10:51 +02:00
committed by GitHub
parent 229518e456
commit 3ea1f51eb5
5 changed files with 89 additions and 0 deletions

View File

@@ -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 => ({