Bring lastMessage and lastMessageStatus back to conversation

This commit is contained in:
Scott Nonnenberg 2019-02-27 18:15:24 -08:00
parent dcd16775c3
commit 812f895e12
2 changed files with 11 additions and 20 deletions

View file

@ -224,7 +224,13 @@
this._initialFetchComplete = true;
await Promise.all(
conversations.map(conversation => conversation.updateLastMessage())
conversations.map(conversation => {
if (!conversation.get('lastMessage')) {
return conversation.updateLastMessage();
}
return null;
})
);
window.log.info('ConversationController: done with initial fetch');
} catch (error) {