Add localhost c2s connections

This commit is contained in:
tytan652
2021-07-13 17:40:29 +02:00
parent 499ecffe62
commit 3b51bf2946
5 changed files with 64 additions and 3 deletions

View File

@ -42,7 +42,11 @@ function register ({ registerHook, registerSettingsScript, peertubeHelpers }: Re
case 'prosody-port':
case 'prosody-peertube-uri':
case 'chat-type-help-builtin-prosody':
case 'prosody-advanced':
case 'prosody-c2s':
return options.formValues['chat-type'] !== ('builtin-prosody' as ChatType)
case 'prosody-c2s-port':
return options.formValues['chat-type'] !== ('builtin-prosody' as ChatType) || options.formValues['prosody-c2s'] === false
case 'chat-server':
case 'chat-room':
case 'chat-bosh-uri':