mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
add /devtools command
This commit is contained in:
parent
8fd0ced215
commit
79b83e60ab
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user