Skip to content

Commit

Permalink
Prefix channel name in title with '#'
Browse files Browse the repository at this point in the history
  • Loading branch information
Benny- committed Nov 18, 2018
1 parent 0a9b164 commit b38334f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class TextChannelChatController extends MessageChannelController {
ImageElement titleIcon = new ImageElement( src: this.ds.bot.self.avatarURL(format: 'png'), width: 128, height: 128);
titleIcon.className = "user-avatar-tab-header";
SpanElement titleText = new SpanElement();
titleText.text = _channel.name;
titleText.text = '#' + _channel.name;

this.titleContainer.append(titleIcon);
this.titleContainer.appendText(' ');
Expand Down Expand Up @@ -150,6 +150,7 @@ class TextChannelChatController extends MessageChannelController {
discord.TextChannel get channel => this._channel;

_addMember(discord.Member user) {
assert(user != null);
DocumentFragment userFragment = document.importNode(_userTemplate.content, true);
DivElement userItem = userFragment.querySelector(".user-item");
ImageElement avatar = userFragment.querySelector("img.avatar");
Expand Down

0 comments on commit b38334f

Please sign in to comment.