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 });
|
this.doAddSingleMessage(model, { isJustSent: true });
|
||||||
|
|
||||||
|
log.info(
|
||||||
|
`enqueueMessageForSend(${this.idForLogging()}): clearDraft(${!dontClearDraft})`
|
||||||
|
);
|
||||||
const draftProperties = dontClearDraft
|
const draftProperties = dontClearDraft
|
||||||
? {}
|
? {}
|
||||||
: {
|
: {
|
||||||
|
|
|
@ -1147,6 +1147,7 @@ function saveDraft(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (messageText !== conversation.get('draft')) {
|
if (messageText !== conversation.get('draft')) {
|
||||||
|
log.info(`saveDraft(${conversation.idForLogging()})`);
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
let activeAt = conversation.get('active_at');
|
let activeAt = conversation.get('active_at');
|
||||||
let timestamp = conversation.get('timestamp');
|
let timestamp = conversation.get('timestamp');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue