Use generic Backbone collection for inbox

There's no need to use a custom collection type here since we don't use
any of the ConversationCollection methods. This helps prevent the
introduction of duplicate models for the same chat.

// FREEBIE
This commit is contained in:
lilia 2015-09-07 17:25:10 -07:00
parent 2ab7315c80
commit 949cb8d8e3

View file

@ -11,7 +11,7 @@
var conversations = new Whisper.ConversationCollection();
window.inbox = new Whisper.ConversationCollection([], {
window.inbox = new Backbone.Collection([], {
comparator: function(model) {
return -model.get('active_at');
}