Migration script in prevision of the future settings "chat-type".

This commit is contained in:
John Livingston
2021-06-02 19:16:27 +02:00
parent 24c764c3a5
commit 11d79fc611
3 changed files with 99 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import { getBaseRouterRoute } from './helpers'
import { ensureProsodyRunning, ensureProsodyNotRunning } from './prosody/ctl'
export function initSettings (options: RegisterServerOptions): void {
type ChatType = 'disabled' | 'builtin-prosody' | 'builtin-converse' | 'external-uri'
function initSettings (options: RegisterServerOptions): void {
const { peertubeHelpers, registerSetting, settingsManager } = options
registerSetting({
@ -214,3 +216,8 @@ Before asking for help, please use this diagnostic tool:
}
})
}
export {
ChatType,
initSettings
}