mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user