From 42ba38e3dda88d44c2ec4ac2bcd543d65a98cc5d Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 12 Oct 2023 20:35:26 +1300 Subject: [PATCH] Use the correct property for guest access --- d2m/actions/create-space.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2m/actions/create-space.js b/d2m/actions/create-space.js index 1c1c357..59a5217 100644 --- a/d2m/actions/create-space.js +++ b/d2m/actions/create-space.js @@ -65,7 +65,7 @@ async function guildToKState(guild, privacyLevel) { "m.room.name/": {name: guild.name}, "m.room.avatar/": avatarEventContent, "m.room.guest_access/": {guest_access: createRoom.PRIVACY_ENUMS.GUEST_ACCESS[privacyLevel]}, - "m.room.history_visibility/": {history_visibility: createRoom.PRIVACY_ENUMS.GUEST_ACCESS[privacyLevel]} + "m.room.history_visibility/": {history_visibility: createRoom.PRIVACY_ENUMS.SPACE_HISTORY_VISIBILITY[privacyLevel]} } return guildKState