s/m.room.color_scheme/org.matrix.room.color_scheme/g # to make kegan happier

This commit is contained in:
Matthew Hodgson 2016-01-13 13:01:00 +00:00
parent 4f14ead741
commit 3934b42ac8
4 changed files with 6 additions and 6 deletions

View file

@ -57,7 +57,7 @@ var commands = {
}
return success(
MatrixClientPeg.get().setRoomAccountData(
room_id, "m.room.color_scheme", colorScheme
room_id, "org.matrix.room.color_scheme", colorScheme
)
);
}

View file

@ -360,7 +360,7 @@ module.exports = React.createClass({
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
if (theAlias) presentedId = theAlias;
var color_scheme_event = room.getAccountData("m.room.color_scheme");
var color_scheme_event = room.getAccountData("org.matrix.room.color_scheme");
var color_scheme = {};
if (color_scheme_event) {
color_scheme = color_scheme_event.getContent();

View file

@ -244,7 +244,7 @@ module.exports = React.createClass({
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
if (!room) return;
var color_scheme_event = room.getAccountData("m.room.color_scheme");
var color_scheme_event = room.getAccountData("org.matrix.room.color_scheme");
var color_scheme = {};
if (color_scheme_event) {
color_scheme = color_scheme_event.getContent();
@ -255,7 +255,7 @@ module.exports = React.createClass({
onRoomAccountData: function(room, event) {
if (room.roomId == this.props.roomId) {
if (event.getType === "m.room.color_scheme") {
if (event.getType === "org.matrix.room.color_scheme") {
var color_scheme = event.getContent();
// XXX: we should validate the event
Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
@ -810,7 +810,7 @@ module.exports = React.createClass({
if (new_color_scheme) {
deferreds.push(
MatrixClientPeg.get().setRoomAccountData(
this.state.room.roomId, "m.room.color_scheme", new_color_scheme
this.state.room.roomId, "org.matrix.room.color_scheme", new_color_scheme
)
);
}

View file

@ -43,7 +43,7 @@ module.exports = React.createClass({
getInitialState: function() {
// work out the initial color index
var room_color_index = undefined;
var color_scheme_event = this.props.room.getAccountData("m.room.color_scheme");
var color_scheme_event = this.props.room.getAccountData("org.matrix.room.color_scheme");
if (color_scheme_event) {
var color_scheme = color_scheme_event.getContent();
if (color_scheme.primary_color) color_scheme.primary_color = color_scheme.primary_color.toLowerCase();