Only load contacts (not groups) in the typeahead

This commit is contained in:
lilia 2015-01-28 02:24:18 -10:00
parent 2f93fb9fbc
commit b3e32a2642

View file

@ -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({