Use settings in slash commands too
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
e31c89d360
commit
50807d498a
1 changed files with 2 additions and 3 deletions
|
@ -20,6 +20,7 @@ import Tinter from "./Tinter";
|
|||
import sdk from './index';
|
||||
import { _t } from './languageHandler';
|
||||
import Modal from './Modal';
|
||||
import SettingsStore, {SettingLevel} from "./settings/SettingsStore";
|
||||
|
||||
|
||||
class Command {
|
||||
|
@ -97,9 +98,7 @@ const commands = {
|
|||
colorScheme.secondary_color = matches[4];
|
||||
}
|
||||
return success(
|
||||
MatrixClientPeg.get().setRoomAccountData(
|
||||
roomId, "org.matrix.room.color_scheme", colorScheme,
|
||||
),
|
||||
SettingsStore.setValue("roomColor", roomId, SettingLevel.ROOM_ACCOUNT, colorScheme),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue