From 231ca3d1776a497ab3e8febe493e5475b0604b67 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 15 Sep 2023 12:38:35 +0200 Subject: [PATCH] Fix video updated action. --- server/lib/configuration/channel/init.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/lib/configuration/channel/init.ts b/server/lib/configuration/channel/init.ts index b6dd78b3..7bb021c8 100644 --- a/server/lib/configuration/channel/init.ts +++ b/server/lib/configuration/channel/init.ts @@ -80,7 +80,12 @@ async function initChannelConfiguration (options: RegisterServerOptions): Promis }, video) if (!hasChat) { - logger.debug(`Video ${video.uuid} has no chat, skipping`) + // Either there were never any chat, either it was disabled... + logger.debug(`Video ${video.uuid} has no chat, ensuring there is no room link`) + // Here the associated channel can be either channel.X@mucdomain or video_uuid@mucdomain. + // In first case, nothing to do... in the second, we must delete. + // So we don't need to check which case is effective, just delete video_uuid@mucdomain. + RoomChannel.singleton().removeRoom(video.uuid) return }