From 2457d51fd4087a53b44ca4266d190fa5fc6a5581 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 20 Nov 2015 17:08:10 -0800 Subject: [PATCH] Ignore search queries that are all whitespace // FREEBIE --- js/views/conversation_search_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);