Remove /tint completely and dedup copyright
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ae834f8d05
commit
1e8b304b3c
2 changed files with 0 additions and 45 deletions
|
@ -288,33 +288,6 @@ export const CommandMap = {
|
|||
category: CommandCategories.actions,
|
||||
}),
|
||||
|
||||
// Room Tint has been unsupported since the redesign
|
||||
// tint: new Command({
|
||||
// name: 'tint',
|
||||
// args: '<color1> [<color2>]',
|
||||
// description: _td('Changes colour scheme of current room'),
|
||||
// runFn: function(roomId, args) {
|
||||
// if (args) {
|
||||
// const matches = args.match(/^(#([\da-fA-F]{3}|[\da-fA-F]{6}))( +(#([\da-fA-F]{3}|[\da-fA-F]{6})))?$/);
|
||||
// if (matches) {
|
||||
// Tinter.tint(matches[1], matches[4]);
|
||||
// const colorScheme = {};
|
||||
// colorScheme.primary_color = matches[1];
|
||||
// if (matches[4]) {
|
||||
// colorScheme.secondary_color = matches[4];
|
||||
// } else {
|
||||
// colorScheme.secondary_color = colorScheme.primary_color;
|
||||
// }
|
||||
// return success(
|
||||
// SettingsStore.setValue('roomColor', roomId, SettingLevel.ROOM_ACCOUNT, colorScheme),
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// return reject(this.getUsage());
|
||||
// },
|
||||
// category: CommandCategories.actions,
|
||||
// }),
|
||||
|
||||
topic: new Command({
|
||||
name: 'topic',
|
||||
args: '[<topic>]',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue