Merge pull request #2458 from matrix-org/travis/upgrade-command

Add an /upgraderoom command to make upgrading easier for development
This commit is contained in:
David Baker 2019-01-18 10:00:53 +00:00 committed by GitHub
commit 622d7427f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -86,6 +86,18 @@ export const CommandMap = {
hideCompletionAfterSpace: true,
}),
upgraderoom: new Command({
name: 'upgraderoom',
args: '<new_version>',
description: _td('Upgrades a room to a new version'),
runFn: function(roomId, args) {
if (args) {
return success(MatrixClientPeg.get().upgradeRoom(roomId, args));
}
return reject(this.getUsage());
},
}),
nick: new Command({
name: 'nick',
args: '<display_name>',

View file

@ -132,6 +132,7 @@
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
"/ddg is not a command": "/ddg is not a command",
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
"Upgrades a room to a new version": "Upgrades a room to a new version",
"Changes your display nickname": "Changes your display nickname",
"Changes colour scheme of current room": "Changes colour scheme of current room",
"Sets the room topic": "Sets the room topic",