Clear conversation list when the conversations collection resets

This commit is contained in:
Scott Nonnenberg 2018-03-07 17:27:58 -08:00 committed by Scott Nonnenberg
parent c760fe29ac
commit b01b939d15
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -15,6 +15,9 @@
this.on('change:timestamp change:name change:number', this.sort);
this.listenTo(conversations, 'add change:active_at', this.addActive);
this.listenTo(conversations, 'reset', function() {
this.reset([]);
});
this.on('add remove change:unreadCount',
_.debounce(this.updateUnreadCount.bind(this), 1000)