Conversation subscreens share a header

// FREEBIE
This commit is contained in:
lilia 2016-03-21 15:37:53 -07:00
parent c8aa2246dc
commit 234f937bc7
11 changed files with 128 additions and 189 deletions

View file

@ -366,12 +366,10 @@
if (this.avatarUrl) {
return { url: this.avatarUrl, color: color };
} else if (this.isPrivate()) {
var content;
if (!title) {
content = '#';
}
var content = title.trim()[0];
return { content: content, color: color };
return {
color: color,
content: title ? title.trim()[0] : '#'
};
} else {
return { url: '/images/group_default.png', color: color };
}