Fix selected state transition on firstRun

// FREEBIE
This commit is contained in:
lilia 2015-11-28 15:50:44 -08:00
parent 8d214b73d9
commit db773dd8a7

View file

@ -105,9 +105,10 @@
if (inboxCollection.length === 0) {
this.searchView.showAllContacts = true;
this.searchView.reset();
this.listenToOnce(inboxCollection, 'add', function() {
this.listenToOnce(inboxCollection, 'add', function(model) {
this.searchView.showAllContacts = false;
this.searchView.reset();
model.trigger('opened');
}.bind(this));
}