Track performance of message sends

This commit is contained in:
Scott Nonnenberg 2021-07-30 11:37:03 -07:00 committed by GitHub
parent 2d3b1918b3
commit 0ab09711a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 13 deletions

View file

@ -3559,6 +3559,9 @@ export class ConversationModel extends window.Backbone
const destination = this.getSendTarget()!;
const recipients = this.getRecipients();
if (timestamp) {
window.log.info(`sendMessage: Queueing send with timestamp ${timestamp}`);
}
this.queueJob('sendMessage', async () => {
const now = timestamp || Date.now();