From 200981e022703d87756f5b4eaf7d34997602f627 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 8 Feb 2015 08:45:16 -1000 Subject: [PATCH] Avoid adding empty-string numbers to recipients --- js/views/new_conversation_view.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 6cfc3157..0c1485e1 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -112,6 +112,10 @@ var Whisper = Whisper || {}; }, initNewContact: function() { + if (this.new_contact) { + this.new_contact.undelegateEvents(); + this.new_contact.$el.hide(); + } // Creates a view to display a new contact this.new_contact = new Whisper.ConversationListItemView({ el: this.$new_contact,