Clear conversation list when the conversations collection resets
This commit is contained in:
parent
c760fe29ac
commit
b01b939d15
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue