Some fixes for windowed render

This commit is contained in:
Scott Nonnenberg 2019-08-15 07:59:56 -07:00
parent e4d2e28ec4
commit 0b0214cbf9
4 changed files with 84 additions and 49 deletions

View file

@ -2252,12 +2252,18 @@
const existing = this.model.get('quotedMessageId');
if (existing !== messageId) {
const timestamp = messageId ? Date.now() : null;
this.model.set({
quotedMessageId: messageId,
draftTimestamp: timestamp,
timestamp,
});
if (messageId) {
const timestamp = Date.now();
this.model.set({
draftTimestamp: timestamp,
timestamp,
});
}
await this.saveModel();
}