Fix autocolors settings.
This commit is contained in:
parent
a20da5b51e
commit
215c5c7f1e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user