From 215c5c7f1e5e90b971c0728c8fe022e924b5979c Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 24 Nov 2021 18:21:35 +0100 Subject: [PATCH] Fix autocolors settings. --- client/videowatch-client-plugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/videowatch-client-plugin.ts b/client/videowatch-client-plugin.ts index 23b14d29..84d8a1a4 100644 --- a/client/videowatch-client-plugin.ts +++ b/client/videowatch-client-plugin.ts @@ -62,7 +62,10 @@ function register ({ registerHook, peertubeHelpers }: RegisterOptions): void { return null } - if (isAutoColorsAvailable(settings['chat-type'] as ChatType, settings['converse-theme'])) { + if ( + settings['converse-autocolors'] && + isAutoColorsAvailable(settings['chat-type'] as ChatType, settings['converse-theme']) + ) { logger.info('We have to try to compute autocolors.') try { const autocolors = computeAutoColors()