mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-30 00:16:02 +08:00
fix(db): don't exclude message bodies in deltas for drafts
This commit is contained in:
parent
781080716c
commit
35f1a14833
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ export default class DatabaseChangeRecord {
|
||||||
*/
|
*/
|
||||||
if (options.objectClass === "Message") {
|
if (options.objectClass === "Message") {
|
||||||
this._objects = this._objects.map((o) => {
|
this._objects = this._objects.map((o) => {
|
||||||
o.body = null;
|
if (!o.draft) {
|
||||||
|
o.body = null;
|
||||||
|
}
|
||||||
return o;
|
return o;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue