diff --git a/js/views/conversation_search_view.js b/js/views/conversation_search_view.js index 90ff6b83..8a9cc713 100644 --- a/js/views/conversation_search_view.js +++ b/js/views/conversation_search_view.js @@ -30,7 +30,7 @@ }, filterContacts: function(e) { - var query = this.$input.val(); + var query = this.$input.val().trim(); if (query.length) { if (this.maybeNumber(query)) { this.new_contact_view.model.set('id', query);