You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
add /devtools command
This commit is contained in:
@@ -292,6 +292,13 @@ const commands = {
|
|||||||
return reject(this.getUsage());
|
return reject(this.getUsage());
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// Open developer tools
|
||||||
|
devtools: new Command("devtools", "", function(roomId) {
|
||||||
|
const DevtoolsDialog = sdk.getComponent("dialogs.DevtoolsDialog");
|
||||||
|
Modal.createDialog(DevtoolsDialog, { roomId });
|
||||||
|
return success();
|
||||||
|
}),
|
||||||
|
|
||||||
// Verify a user, device, and pubkey tuple
|
// Verify a user, device, and pubkey tuple
|
||||||
verify: new Command("verify", "<userId> <deviceId> <deviceSigningKey>", function(roomId, args) {
|
verify: new Command("verify", "<userId> <deviceId> <deviceSigningKey>", function(roomId, args) {
|
||||||
if (args) {
|
if (args) {
|
||||||
|
|||||||
Reference in New Issue
Block a user