mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Display gray # instead of colored + for no-name contacts
For consistency with android.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user