Load profiles for a conversation without blocking convo load (#1570)
This commit is contained in:
parent
f68604c412
commit
dabc56d0cf
1 changed files with 2 additions and 4 deletions
|
@ -470,11 +470,9 @@
|
|||
// messages from the database, then ensure that the loading screen is only
|
||||
// dismissed when that is complete.
|
||||
var messagesLoaded = this.inProgressFetch || Promise.resolve();
|
||||
messagesLoaded = messagesLoaded.then(function() {
|
||||
return this.model.decryptOldIncomingKeyErrors();
|
||||
}.bind(this));
|
||||
|
||||
Promise.all([this.statusFetch, messagesLoaded])
|
||||
messagesLoaded
|
||||
.then(this.model.decryptOldIncomingKeyErrors.bind(this))
|
||||
.then(this.onLoaded.bind(this), this.onLoaded.bind(this));
|
||||
|
||||
this.view.resetScrollPosition();
|
||||
|
|
Loading…
Reference in a new issue