Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fa14d0e

Browse files
turt2livebwindels
authored andcommitted
Move tinter init to MatrixChat
This is a much better place for it to live
1 parent cbb1175 commit fa14d0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/structures/MatrixChat.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,11 @@ export default React.createClass({
14031403
break;
14041404
}
14051405
});
1406+
1407+
// Fire the tinter right on startup to ensure the default theme is applied
1408+
// A later sync can/will correct the tint to be the right value for the user
1409+
const color_scheme = SettingsStore.getValue("roomColor");
1410+
Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
14061411
},
14071412

14081413
/**

0 commit comments

Comments
 (0)