From 5fe53410755ddcbe16886fe49e4279c44e4ffab6 Mon Sep 17 00:00:00 2001 From: Ashfame Date: Mon, 27 Nov 2023 22:50:16 +0400 Subject: [PATCH] add explanation for revert --- src/TeamSyncer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TeamSyncer.ts b/src/TeamSyncer.ts index 20e4dc14..009f287e 100644 --- a/src/TeamSyncer.ts +++ b/src/TeamSyncer.ts @@ -617,6 +617,9 @@ export class TeamSyncer { plUsers[admin] = 100; } + // Important note: default alias needs to be undefined if alias prefix isn't used + // otherwise teamsync would fail to create new room since if room alias is specified, + // it needs to have exclusive access to such rooms (configured in app service config) const aliasPrefix = this.getAliasPrefix(teamId); const alias = aliasPrefix ? `${aliasPrefix}${channel.name.toLowerCase()}` : undefined; let topic: undefined|string;