From b3e32a2642f28b7edd52fec7298334e5fe61696e Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 28 Jan 2015 02:24:18 -1000 Subject: [PATCH] Only load contacts (not groups) in the typeahead --- js/views/new_conversation_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 3d0c1fc4..e4da52a6 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -51,7 +51,9 @@ var Whisper = Whisper || {}; }); this.typeahead_view.$el.appendTo(this.$el.find('.contacts')); - this.typeahead_collection.fetch(); + this.typeahead_collection.fetch({ + conditions: { type: 'private' } + }); this.new_contact = new Whisper.ConversationListItemView({ model: new Whisper.Conversation({