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 an /upgraderoom command to make upgrading easier for development
This commit is contained in:
@@ -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>',
|
||||
|
||||
Reference in New Issue
Block a user