From b277b37e280b7dcd1e9aa701302c5d7e24d64f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 23 Nov 2022 11:07:35 +0100 Subject: [PATCH] =?UTF-8?q?hopefully=20actually=20don=E2=80=99t=20use=20sp?= =?UTF-8?q?aces=20for=20categories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matrix/mautrix-discord/no-category-spaces.patch | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/matrix/mautrix-discord/no-category-spaces.patch b/matrix/mautrix-discord/no-category-spaces.patch index e9a7609..ef2110f 100644 --- a/matrix/mautrix-discord/no-category-spaces.patch +++ b/matrix/mautrix-discord/no-category-spaces.patch @@ -1,5 +1,5 @@ diff --git a/portal.go b/portal.go -index 25e0dc2..9f6a5b3 100644 +index 25e0dc2..7f60709 100644 --- a/portal.go +++ b/portal.go @@ -351,7 +351,7 @@ func (portal *Portal) CreateMatrixRoom(user *User, channel *discordgo.Channel) e @@ -32,3 +32,14 @@ index 25e0dc2..9f6a5b3 100644 return portal.Guild.MXID } return "" +@@ -1798,9 +1792,7 @@ func (portal *Portal) updateSpace() bool { + if portal.MXID == "" { + return false + } +- if portal.Parent != nil { +- return portal.addToSpace(portal.Parent.MXID) +- } else if portal.Guild != nil { ++ if portal.Guild != nil { + return portal.addToSpace(portal.Guild.MXID) + } + return false