mirror of https://github.com/vector-im/riot-web
Oh right, can't change these
Signed-off-by: Aaron Raimist <aaron@raim.ist>pull/21833/head
parent
cb033bcadd
commit
1aa3085958
|
@ -693,7 +693,7 @@ module.exports = React.createClass({
|
||||||
onRoomAccountData: function(event, room) {
|
onRoomAccountData: function(event, room) {
|
||||||
if (room.roomId == this.state.roomId) {
|
if (room.roomId == this.state.roomId) {
|
||||||
const type = event.getType();
|
const type = event.getType();
|
||||||
if (type === "org.matrix.room.colorScheme") {
|
if (type === "org.matrix.room.color_scheme") {
|
||||||
const colorScheme = event.getContent();
|
const colorScheme = event.getContent();
|
||||||
// XXX: we should validate the event
|
// XXX: we should validate the event
|
||||||
console.log("Tinter.tint from onRoomAccountData");
|
console.log("Tinter.tint from onRoomAccountData");
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default class RoomAccountSettingsHandler extends SettingsHandler {
|
||||||
// The event content should already be in an appropriate format, we just need
|
// The event content should already be in an appropriate format, we just need
|
||||||
// to get the right value.
|
// to get the right value.
|
||||||
// don't fallback to {} because thats truthy and would imply there is an event specifying tint
|
// don't fallback to {} because thats truthy and would imply there is an event specifying tint
|
||||||
return this._getSettings(roomId, "org.matrix.room.colorScheme");
|
return this._getSettings(roomId, "org.matrix.room.color_scheme");
|
||||||
}
|
}
|
||||||
|
|
||||||
const settings = this._getSettings(roomId) || {};
|
const settings = this._getSettings(roomId) || {};
|
||||||
|
@ -54,7 +54,7 @@ export default class RoomAccountSettingsHandler extends SettingsHandler {
|
||||||
// Special case room color
|
// Special case room color
|
||||||
if (settingName === "roomColor") {
|
if (settingName === "roomColor") {
|
||||||
// The new value should match our requirements, we just need to store it in the right place.
|
// The new value should match our requirements, we just need to store it in the right place.
|
||||||
return MatrixClientPeg.get().setRoomAccountData(roomId, "org.matrix.room.colorScheme", newValue);
|
return MatrixClientPeg.get().setRoomAccountData(roomId, "org.matrix.room.color_scheme", newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
const content = this._getSettings(roomId) || {};
|
const content = this._getSettings(roomId) || {};
|
||||||
|
|
Loading…
Reference in New Issue