Autocreate space if autocreating the room

This commit is contained in:
Cadence Ember 2024-12-02 16:33:18 +13:00
commit 4f040e40d6
4 changed files with 7 additions and 9 deletions

View file

@ -93,7 +93,7 @@ async function _syncSpace(guild, shouldActuallySync) {
if (!row) {
const autocreate = select("guild_active", "autocreate", {guild_id: guild.id}).pluck().get()
assert.equal(autocreate, 1, `refusing to implicitly create guild ${guild.id}. set the guild_active data first before calling ensureSpace/syncSpace.`)
assert.equal(autocreate, 1, `refusing to implicitly create a space for guild ${guild.id}. set the guild_active data first before calling ensureSpace/syncSpace.`)
const creation = (async () => {
const guildKState = await guildToKState(guild, createRoom.DEFAULT_PRIVACY_LEVEL) // New spaces will have to use the default privacy level; we obviously can't look up the existing entry