diff --git a/app/components/channel-nav/template.hbs b/app/components/channel-nav/template.hbs index 5790ece5..d3bbf552 100644 --- a/app/components/channel-nav/template.hbs +++ b/app/components/channel-nav/template.hbs @@ -8,9 +8,15 @@ {{#each subspace.channels as |channel|}}
  • {{#if channel.isUserChannel}} - - {{channel.name}} - + {{#if (eq channel.protocol "XMPP")}} + +  {{channel.displayName}} + + {{else}} + + {{channel.displayName}} + + {{/if}} {{else}} # {{channel.shortName}} diff --git a/app/components/link-to-username/component.js b/app/components/link-to-username/component.js index 9b42e967..45876ab7 100644 --- a/app/components/link-to-username/component.js +++ b/app/components/link-to-username/component.js @@ -24,4 +24,17 @@ export default class LinkToUsernameComponent extends Component { return this.args.username.replace(regex, ''); } + get userChannelId () { + let id; + switch (this.args.channel.protocol) { + case 'IRC': + id = `${this.usernameWithoutPrefix}@${this.args.channel.domain}`; + break; + case 'XMPP': + id = `${this.args.channel.id}${encodeURIComponent('/')}${this.usernameWithoutPrefix}`; + break; + } + return id; + } + } diff --git a/app/components/link-to-username/template.hbs b/app/components/link-to-username/template.hbs index 143c757f..82033099 100644 --- a/app/components/link-to-username/template.hbs +++ b/app/components/link-to-username/template.hbs @@ -1,5 +1,5 @@ {{@username}} diff --git a/app/components/user-list/template.hbs b/app/components/user-list/template.hbs index 7e8f23cc..cdaf93fb 100644 --- a/app/components/user-list/template.hbs +++ b/app/components/user-list/template.hbs @@ -4,13 +4,8 @@ {{/if}}