Avoid adding empty-string numbers to recipients

This commit is contained in:
lilia 2015-02-08 08:45:16 -10:00
parent 3a099657e6
commit 200981e022

View file

@ -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,