mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fetch group contacts before fetching new messages
Messages must wait for sender info to arrive before rendering. // FREEBIE
This commit is contained in:
@@ -54,7 +54,6 @@
|
||||
appWindow: this.model.appWindow
|
||||
});
|
||||
$el = view.$el;
|
||||
conversation.fetchContacts();
|
||||
if (conversation.messageCollection.length === 0) {
|
||||
$el.find('.message-list').addClass('loading');
|
||||
}
|
||||
@@ -62,8 +61,10 @@
|
||||
$el.prependTo(this.el);
|
||||
$el.find('.message-list').trigger('reset-scroll');
|
||||
$el.trigger('force-resize');
|
||||
conversation.fetchMessages().then(function() {
|
||||
$el.find('.message-list').removeClass('loading');
|
||||
conversation.fetchContacts().then(function() {
|
||||
conversation.fetchMessages().then(function() {
|
||||
$el.find('.message-list').removeClass('loading');
|
||||
});
|
||||
});
|
||||
conversation.markRead();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user