Don't archive threads that are part of a forum

This commit is contained in:
Cadence Ember
2025-06-22 19:04:25 +12:00
parent 639912fee3
commit 65498e6cd1

View File

@@ -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]