From fa14d0ed3c2e6f84ab38448faac2c14b51bc3e96 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 15 Oct 2018 14:41:00 -0600 Subject: [PATCH] Move tinter init to MatrixChat This is a much better place for it to live --- src/components/structures/MatrixChat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index db5e898946..f385aacd40 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1403,6 +1403,11 @@ export default React.createClass({ break; } }); + + // Fire the tinter right on startup to ensure the default theme is applied + // A later sync can/will correct the tint to be the right value for the user + const color_scheme = SettingsStore.getValue("roomColor"); + Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color); }, /**