Skip to content

Commit

Permalink
Merge pull request #24 from Automattic/team_sync_new_room_config
Browse files Browse the repository at this point in the history
Change name and alias for room created under Team sync
  • Loading branch information
ashfame authored Nov 21, 2023
2 parents 921113c + 8806d1b commit 7783ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TeamSyncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7783ceb

Please sign in to comment.