Fix autocolors settings.

This commit is contained in:
John Livingston 2021-11-24 18:21:35 +01:00
parent a20da5b51e
commit 215c5c7f1e
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ function register ({ registerHook, peertubeHelpers }: RegisterOptions): void {
return null 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.') logger.info('We have to try to compute autocolors.')
try { try {
const autocolors = computeAutoColors() const autocolors = computeAutoColors()