Avoid adding empty-string numbers to recipients
This commit is contained in:
parent
3a099657e6
commit
200981e022
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,10 @@ var Whisper = Whisper || {};
|
||||||
},
|
},
|
||||||
|
|
||||||
initNewContact: function() {
|
initNewContact: function() {
|
||||||
|
if (this.new_contact) {
|
||||||
|
this.new_contact.undelegateEvents();
|
||||||
|
this.new_contact.$el.hide();
|
||||||
|
}
|
||||||
// Creates a view to display a new contact
|
// Creates a view to display a new contact
|
||||||
this.new_contact = new Whisper.ConversationListItemView({
|
this.new_contact = new Whisper.ConversationListItemView({
|
||||||
el: this.$new_contact,
|
el: this.$new_contact,
|
||||||
|
|
Loading…
Reference in a new issue