mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-12 05:02:58 +02:00
Autocreate space if autocreating the room
This commit is contained in:
parent
e00ce22aad
commit
4f040e40d6
4 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue