From 51480e21e5d949426a8a85557cea4a1e56b6a636 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 1 May 2023 17:05:47 +1200 Subject: [PATCH] notes about invites --- matrix/read-registration.js | 9 +++++++++ notes.md | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/matrix/read-registration.js b/matrix/read-registration.js index f7c3a86..ee17f28 100644 --- a/matrix/read-registration.js +++ b/matrix/read-registration.js @@ -1,4 +1,13 @@ +// @ts-check + const fs = require("fs") const yaml = require("js-yaml") +/** + * @typedef AppServiceRegistrationConfig + * @property {string} id + * @property {string} as_token + * @property {string} hs_token + */ + module.exports = yaml.load(fs.readFileSync("registration.yaml", "utf8")) diff --git a/notes.md b/notes.md index 98c06e0..eed5990 100644 --- a/notes.md +++ b/notes.md @@ -43,11 +43,13 @@ Discord **channels** that disallow view permission to @everyone should instead h - Find & join access: Private (so space members cannot join without an additional invitation) - Who can read history: Anyone (XXX: is this safe??? is this a fishbowl situation? https://github.com/matrix-org/synapse/issues/9202) -### Discord experience +### Discord experience: /invite command -To add an initial Matrix user to the **space**, a Discord member would use /invite @cadence:cadence.moe in any channel. If this member has create invite permissions, then the bridge bot should send a Matrix invite to the **space** for @cadence:cadence.moe. +The context-sensitive /invite command will invite Matrix users to the corresponding spaces or rooms. -Not yet sure how access to private **channels** would be granted to individual Matrix users. Maybe somebody with Manage Server can use another invite command? +- In a **public channel** (i.e. @everyone is allowed access), /invite will invite an MXID to the **space**, provided the user has Create Invites. +- In a **private channel**, /invite will invite a distinct username or MXID to the **room**, provided the user has Manage Server. +- In a **public or private thread**, /invite will invite a distinct username or MXID to the **thread room**. # d2m events