Show all contacts all the time

Contacts without conversation identity appear in alphabetical order at
the end of the inbox.

// FREEBIE
This commit is contained in:
lilia 2016-03-17 21:42:03 -07:00
parent b4960b29d8
commit 760bfffb50
5 changed files with 69 additions and 18 deletions

View file

@ -14,7 +14,8 @@
if (conversation.get('active_at')) {
$el.prependTo(this.el);
} else {
$el.remove();
var index = getInboxCollection().indexOf(conversation);
$el.insertBefore(this.$('.conversation-list-item')[index+1]);
}
}
}

View file

@ -95,16 +95,6 @@
this.listenTo(this.searchView, 'open',
this.openConversation.bind(this, null));
if (inboxCollection.length === 0) {
this.searchView.showAllContacts = true;
this.searchView.reset();
this.listenToOnce(inboxCollection, 'add', function(model) {
this.searchView.showAllContacts = false;
this.searchView.reset();
model.trigger('opened');
}.bind(this));
}
new SocketView().render().$el.appendTo(this.$('.socket-status'));
extension.windows.onClosed(function() {