- Update documentation for matrix-room-users and matrix-synapse-create-edit-user

- matrix-synapse-deactivate-user fixed
This commit is contained in:
2021-08-30 09:50:13 -06:00
parent 15c70e2b2d
commit 6d15c259b4
3 changed files with 12 additions and 14 deletions
+1 -4
View File
@@ -52,7 +52,7 @@ module.exports = function(RED) {
const path = node.encodeUri(
"/_synapse/admin/v1/deactivate/$userId",
{ $userId: userId },
{ $userId: msg.userId },
);
node.server.matrixClient.http
.authedRequest(undefined, 'POST', path, undefined, { "erase": (msg.erase || false) }, { prefix: '' })
@@ -64,9 +64,6 @@ module.exports = function(RED) {
msg.error = e;
node.send([null, msg]);
});
node.server.matrixClient.deactivateSynapseUser(msg.userId)
;
});
}
RED.nodes.registerType("matrix-synapse-deactivate-user", MatrixSynapseDeactivateUser);