Display gray # instead of colored + for no-name contacts

For consistency with android.
This commit is contained in:
lilia 2015-06-25 13:32:05 -07:00
parent 4c40861728
commit feb5e5b068
5 changed files with 10 additions and 3 deletions

View file

@ -244,7 +244,10 @@
if (this.avatarUrl) {
return { url: this.avatarUrl };
} else if (this.isPrivate()) {
var title = this.getTitle() || '';
var title = this.get('name');
if (!title) {
return { content: '#', color: 'gray' };
}
var initials = title.trim()[0];
return {
color: Math.abs(this.hashCode()) % 17,