Update compose typeahead after fetching

Fixes #322

// FREEBIE
pull/749/head
lilia 10 years ago
parent 001a91466b
commit 82431c3c12

@ -28,7 +28,7 @@
storeName: 'conversations', storeName: 'conversations',
model: Whisper.Conversation, model: Whisper.Conversation,
fetchContacts: function() { fetchContacts: function() {
this.fetch({ conditions: { type: 'private' } }); return this.fetch({ reset: true, conditions: { type: 'private' } });
} }
}); });
@ -91,6 +91,7 @@
}) })
}); });
this.$('.contacts').append(this.typeahead_view.el); this.$('.contacts').append(this.typeahead_view.el);
this.listenTo(this.typeahead, 'reset', this.filterContacts);
this.initNewContact(); this.initNewContact();
}, },

Loading…
Cancel
Save