mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Use separate message collections for each thread to facilitate lookup and lazy loading
This commit is contained in:
@@ -36,7 +36,9 @@ var Whisper = Whisper || {};
|
||||
},
|
||||
|
||||
messages: function() {
|
||||
return Whisper.Messages.where({threadId: this.id});
|
||||
var messages = new Whisper.MessageCollection([], {threadId: this.id});
|
||||
messages.fetch();
|
||||
return messages;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user