Skip to content

Commit

Permalink
Matrix bridge doesn't need to have exclusive control over the namespa…
Browse files Browse the repository at this point in the history
…ces in a self-service world

As part of the [sunset plan for Gitter]
(element-hq/roadmap#26), we need to make the
appservice not be exclusive over the namespaces defined in the appservice
registration file so people don't run into errors when they self-service and try to create things.

Part of element-hq/matrix-hosted#6979
  • Loading branch information
MadLittleMods committed Jan 14, 2023
1 parent 157cd45 commit 4d01764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/matrix-bridge/lib/matrix-bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ const registrationConfig = AppServiceRegistration.fromObject({
namespaces: {
users: [
{
exclusive: true,
exclusive: false,
// Reserve these MXID's (usernames)
regex: `@.*-[0-9a-f]+:${serverName}`
}
],
aliases: [
{
exclusive: true,
exclusive: false,
// Reserve these room aliases
regex: `#.*:${serverName}`
}
],
rooms: [
{
exclusive: true,
exclusive: false,
// This regex is used to define which rooms we listen to with the bridge.
// This does not reserve the rooms like the other namespaces.
regex: '.*'
Expand Down

0 comments on commit 4d01764

Please sign in to comment.