Adds some logging around draft clearing
This commit is contained in:
parent
0966118e1a
commit
4d7b5cd072
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
? {}
|
||||
: {
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue