Load profiles for a conversation without blocking convo load (#1570)

This commit is contained in:
Scott Nonnenberg 2017-10-18 11:59:12 -07:00 committed by GitHub
parent f68604c412
commit dabc56d0cf

View file

@ -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();