From 65498e6cd1f35aa11a437028763f3b589c78e082 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 22 Jun 2025 19:04:25 +1200 Subject: [PATCH] Don't archive threads that are part of a forum --- src/d2m/actions/create-room.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/d2m/actions/create-room.js b/src/d2m/actions/create-room.js index 605b6d3..4c02fd2 100644 --- a/src/d2m/actions/create-room.js +++ b/src/d2m/actions/create-room.js @@ -528,7 +528,10 @@ async function _syncSpaceMember(channel, spaceID, roomID, guild_id) { let spaceEventContent = {} if ( channel.type !== DiscordTypes.ChannelType.PrivateThread // private threads do not belong in the space (don't offer people something they can't join) - && !channel["thread_metadata"]?.archived // archived threads do not belong in the space (don't offer people conversations that are no longer relevant) + && ( + !channel["thread_metadata"]?.archived // archived threads do not belong in the space (don't offer people conversations that are no longer relevant) + || discord.channels.get(channel.parent_id || "")?.type === DiscordTypes.ChannelType.GuildForum + ) ) { spaceEventContent = { via: [reg.ooye.server_name]