Conversation.onOpened: Wait for outstanding message processing
This commit is contained in:
parent
df849c65a8
commit
3966d55d3b
1 changed files with 6 additions and 3 deletions
|
@ -1733,7 +1733,12 @@
|
||||||
window.log.warn(`onOpened: Did not find message ${messageId}`);
|
window.log.warn(`onOpened: Did not find message ${messageId}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Incoming messages may still be processing, so we wait until those are
|
||||||
|
// complete to pull the 500 most-recent messages in this conversation.
|
||||||
|
this.model.queueJob(() => {
|
||||||
this.loadNewestMessages();
|
this.loadNewestMessages();
|
||||||
|
this.model.updateLastMessage();
|
||||||
|
});
|
||||||
|
|
||||||
this.focusMessageField();
|
this.focusMessageField();
|
||||||
|
|
||||||
|
@ -1742,8 +1747,6 @@
|
||||||
this.setQuoteMessage(quotedMessageId);
|
this.setQuoteMessage(quotedMessageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.model.updateLastMessage();
|
|
||||||
|
|
||||||
const statusPromise = this.model.throttledGetProfiles();
|
const statusPromise = this.model.throttledGetProfiles();
|
||||||
// eslint-disable-next-line more/no-then
|
// eslint-disable-next-line more/no-then
|
||||||
this.statusFetch = statusPromise.then(() =>
|
this.statusFetch = statusPromise.then(() =>
|
||||||
|
|
Loading…
Reference in a new issue