From 4ff83bf261938bd1599b4d64937b6d1aecf7b4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Thu, 7 Jul 2022 11:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/synapse/dataProvider.?= =?UTF-8?q?js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/synapse/dataProvider.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; + }, } };