Render only visible conversations in left pane

This commit is contained in:
Scott Nonnenberg 2019-03-08 18:25:28 -08:00
parent 031b64a476
commit d72f89d776
6 changed files with 65 additions and 13 deletions

View file

@ -11,8 +11,6 @@
const conversations = new Whisper.ConversationCollection();
const inboxCollection = new (Backbone.Collection.extend({
initialize() {
this.on('change:timestamp change:name change:number', this.sort);
this.listenTo(conversations, 'add change:active_at', this.addActive);
this.listenTo(conversations, 'reset', () => this.reset([]));