Adds some logging around draft clearing
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user