Bring lastMessage and lastMessageStatus back to conversation
This commit is contained in:
parent
dcd16775c3
commit
812f895e12
2 changed files with 11 additions and 20 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue