Merge pull request #1268 from matrix-org/t3chguy/devtools

add /devtools command
pull/21833/head
Matthew Hodgson 2017-09-17 23:16:04 +01:00 committed by GitHub
commit 678a6c56b4
1 changed files with 7 additions and 0 deletions

View File

@ -345,6 +345,13 @@ const commands = {
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: new Command("verify", "<userId> <deviceId> <deviceSigningKey>", function(roomId, args) {
if (args) {