no longer invite me to created rooms
This commit is contained in:
parent
5aef6baaab
commit
671f5ba7d3
2 changed files with 2 additions and 3 deletions
|
@ -127,7 +127,6 @@ async function channelToKState(channel, guild) {
|
||||||
async function createRoom(channel, guild, spaceID, kstate) {
|
async function createRoom(channel, guild, spaceID, kstate) {
|
||||||
let threadParent = null
|
let threadParent = null
|
||||||
if (channel.type === DiscordTypes.ChannelType.PublicThread) threadParent = channel.parent_id
|
if (channel.type === DiscordTypes.ChannelType.PublicThread) threadParent = channel.parent_id
|
||||||
const invite = threadParent ? [] : ["@cadence:cadence.moe"] // TODO
|
|
||||||
|
|
||||||
// Name and topic can be done earlier in room creation rather than in initial_state
|
// Name and topic can be done earlier in room creation rather than in initial_state
|
||||||
// https://spec.matrix.org/latest/client-server-api/#creation
|
// https://spec.matrix.org/latest/client-server-api/#creation
|
||||||
|
@ -144,7 +143,7 @@ async function createRoom(channel, guild, spaceID, kstate) {
|
||||||
topic,
|
topic,
|
||||||
preset: "private_chat", // This is closest to what we want, but properties from kstate override it anyway
|
preset: "private_chat", // This is closest to what we want, but properties from kstate override it anyway
|
||||||
visibility: "private", // Not shown in the room directory
|
visibility: "private", // Not shown in the room directory
|
||||||
invite,
|
invite: [],
|
||||||
initial_state: ks.kstateToState(kstate)
|
initial_state: ks.kstateToState(kstate)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ async function createSpace(guild, kstate) {
|
||||||
events_default: 100, // space can only be managed by bridge
|
events_default: 100, // space can only be managed by bridge
|
||||||
invite: 0 // any existing member can invite others
|
invite: 0 // any existing member can invite others
|
||||||
},
|
},
|
||||||
invite: ["@cadence:cadence.moe"], // TODO
|
invite: [],
|
||||||
topic,
|
topic,
|
||||||
creation_content: {
|
creation_content: {
|
||||||
type: "m.space"
|
type: "m.space"
|
||||||
|
|
Loading…
Reference in a new issue