add /devtools command

This commit is contained in:
Michael Telatynski 2017-07-31 12:08:28 +01:00
parent 8fd0ced215
commit 79b83e60ab
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -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) {