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:
committed by
Manuel Stahl
parent
2ab4343970
commit
2cdd41b615
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user