diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index ee76315..6b234c9 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -296,8 +296,16 @@ const resourceMap = { }), }, p3url: { - path: "/_synapse/admin/v1/registration_tokens", - data: "p3url" + map: m => ({ + id: m, + }), + reference: id => ({ + endpoint: `/_synapse/admin/v1/rooms/${id}/members`, + }), + data: "p3url", + total: json => { + return json.total; + }, } };