From d500ad33147e7aced99ed99429b488bcd3182a43 Mon Sep 17 00:00:00 2001 From: Ashfame Date: Mon, 20 Nov 2023 21:43:38 +0400 Subject: [PATCH 1/2] dont prefix room name with a # --- src/TeamSyncer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamSyncer.ts b/src/TeamSyncer.ts index 3d55eb97..496f6977 100644 --- a/src/TeamSyncer.ts +++ b/src/TeamSyncer.ts @@ -646,7 +646,7 @@ export class TeamSyncer { const {room_id} = await intent.createRoom({ createAsClient: true, options: { - name: `#${channel.name}`, + name: channel.name, topic, visibility: isPublic ? "public" : "private", room_alias_name: alias, From 8806d1b0195944ed678ec93a6d9dffc70c155105 Mon Sep 17 00:00:00 2001 From: Ashfame Date: Mon, 20 Nov 2023 21:48:39 +0400 Subject: [PATCH 2/2] let room name be default alias if alias prefix isn't defined --- src/TeamSyncer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamSyncer.ts b/src/TeamSyncer.ts index 496f6977..07cd9af5 100644 --- a/src/TeamSyncer.ts +++ b/src/TeamSyncer.ts @@ -602,7 +602,7 @@ export class TeamSyncer { } const aliasPrefix = this.getAliasPrefix(teamId); - const alias = aliasPrefix ? `${aliasPrefix}${channel.name.toLowerCase()}` : undefined; + const alias = aliasPrefix ? `${aliasPrefix}${channel.name.toLowerCase()}` : channel.name.toLowerCase(); let topic: undefined|string; if (channel.purpose) { topic = channel.purpose.value;