Adds some logging around draft clearing

This commit is contained in:
Josh Perez 2023-03-09 12:52:40 -05:00 committed by GitHub
parent 0966118e1a
commit 4d7b5cd072
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -4205,6 +4205,9 @@ export class ConversationModel extends window.Backbone
this.doAddSingleMessage(model, { isJustSent: true });
log.info(
`enqueueMessageForSend(${this.idForLogging()}): clearDraft(${!dontClearDraft})`
);
const draftProperties = dontClearDraft
? {}
: {

View file

@ -1147,6 +1147,7 @@ function saveDraft(
}
if (messageText !== conversation.get('draft')) {
log.info(`saveDraft(${conversation.idForLogging()})`);
const now = Date.now();
let activeAt = conversation.get('active_at');
let timestamp = conversation.get('timestamp');