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
pull/749/head
lilia 10 years ago
parent 2ab7315c80
commit 949cb8d8e3

@ -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');
}

Loading…
Cancel
Save