This commit is contained in:
John Livingston 2021-08-04 17:32:47 +02:00
parent b2b489af6e
commit 523a5f35ab
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -88,7 +88,7 @@ async function initWebchatRouter (options: RegisterServerOptions): Promise<Route
// Computing the room name...
room = room.replace(/{{VIDEO_UUID}}/g, video.uuid)
room = room.replace(/{{CHANNEL_ID}}/g, `${video.channelId}`)
if (room.includes('CHANNEL_NAME')) {
if (room.includes('{{CHANNEL_NAME}}')) {
const channelName = await getChannelNameById(options, video.channelId)
if (channelName === null) {
throw new Error('Channel not found')