Properly localize group changes (#1802)

* Properly localize group updates

* Remove phone number in display name if contact in address book

* New string for multiple new group members
This commit is contained in:
Scott Nonnenberg
2017-11-21 16:38:13 -08:00
committed by GitHub
parent 87d8ec723a
commit 0a4f984cf5
3 changed files with 48 additions and 6 deletions

View File

@@ -1017,6 +1017,24 @@
}
},
getDisplayName: function() {
if (!this.isPrivate()) {
return this.getTitle();
}
var name = this.get('name');
if (name) {
return name;
}
var profileName = this.get('profileName');
if (profileName) {
return this.getNumber() + ' ~' + profileName;
}
return this.getNumber();
},
getNumber: function() {
if (!this.isPrivate()) {
return '';