configuration option to auto-invite matrix users

This commit is contained in:
Cadence Ember
2023-09-12 23:08:33 +12:00
parent 47b8d44010
commit 9263bdb754
4 changed files with 7 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
const assert = require("assert").strict
const DiscordTypes = require("discord-api-types/v10")
const reg = require("../../matrix/read-registration")
const passthrough = require("../../passthrough")
const { discord, sync, db } = passthrough
@@ -32,7 +33,7 @@ async function createSpace(guild, kstate) {
events_default: 100, // space can only be managed by bridge
invite: 0 // any existing member can invite others
},
invite: [],
invite: reg.ooye.invite,
topic,
creation_content: {
type: "m.space"