Oh right, can't change these

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/21833/head
Aaron Raimist 2018-10-22 23:33:33 -05:00
parent cb033bcadd
commit 1aa3085958
No known key found for this signature in database
GPG Key ID: 37419210002890EF
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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) || {};