mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Don't load group contacts unnecessarily
There are some cases when we want to initialize a group object without loading its contacts, such as while processing delivery receipts. We really only need to load the contacts for a group/convo when we are rendering it, so let the front end handle those cases (which most of them do already).
This commit is contained in:
@@ -269,12 +269,14 @@
|
||||
},
|
||||
|
||||
messageDetail: function(e, data) {
|
||||
var view = new Whisper.MessageDetailView({
|
||||
model: data.message,
|
||||
conversation: this.model
|
||||
return this.model.fetchContacts().then(function() {
|
||||
var view = new Whisper.MessageDetailView({
|
||||
model: data.message,
|
||||
conversation: this.model
|
||||
});
|
||||
this.listenBack(view);
|
||||
view.render();
|
||||
});
|
||||
this.listenBack(view);
|
||||
view.render();
|
||||
},
|
||||
|
||||
listenBack: function(view) {
|
||||
|
||||
Reference in New Issue
Block a user