Closed pztrn closed 5 years ago
As I understand it, this error is sent by the homeserver when the bridge tries to create a room alias that begins with a prefix, or matches a regex, that hasn't been reserved in the registration.yaml file for the appservice.
app_service_config_files
key, the value of which is an array, includes the root-relative path to that slack-registration.yaml fileActually I've solved that with that patch:
diff --git a/index.js b/index.js
index 450881f..ba781ff 100644
--- a/index.js
+++ b/index.js
@@ -24,7 +24,7 @@ new Cli({
reg.setAppServiceToken(AppServiceRegistration.generateToken());
reg.setSenderLocalpart(`slack_bot`);
reg.addRegexPattern("users", `@slack_.*`, true);
- reg.addRegexPattern("aliases", `@slack_.*`, false);
+ reg.addRegexPattern("aliases", `#slack_.*`, false);
callback(reg);
}).catch(err=>{
console.error(err.message);
Found somewhere around here, by the way.
Oh, good! That change is part of 1.12.0, so it sounds like we can close this. Thanks for filing the issue!
After following guide from README.md I get: