Update display when contact colors change
// FREEBIE
This commit is contained in:
parent
6a4b720b89
commit
edd6f58539
3 changed files with 37 additions and 8 deletions
|
@ -349,11 +349,7 @@
|
|||
this.trigger('change');
|
||||
}
|
||||
},
|
||||
getAvatar: function() {
|
||||
if (this.avatarUrl === undefined) {
|
||||
this.updateAvatarUrl(true);
|
||||
}
|
||||
|
||||
getColor: function() {
|
||||
var title = this.get('name');
|
||||
var color = this.get('color');
|
||||
if (!color) {
|
||||
|
@ -367,6 +363,15 @@
|
|||
color = 'default';
|
||||
}
|
||||
}
|
||||
return color;
|
||||
},
|
||||
getAvatar: function() {
|
||||
if (this.avatarUrl === undefined) {
|
||||
this.updateAvatarUrl(true);
|
||||
}
|
||||
|
||||
var title = this.get('name');
|
||||
var color = this.getColor();
|
||||
|
||||
if (this.avatarUrl) {
|
||||
return { url: this.avatarUrl, color: color };
|
||||
|
@ -543,4 +548,6 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
Whisper.Conversation.COLORS = COLORS.concat(['grey', 'default']).join(' ');
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue