Use IndexablePresence for hasFileAttachments and hasVisualMediaAttachments

Reduces index size, makes it easier to debug using IndexedDB inspector, and
hopefully improves lookup performance.
This commit is contained in:
Daniel Gasienica 2018-04-25 14:15:06 -04:00
parent 3a33d862c0
commit f36f206a01
9 changed files with 32 additions and 24 deletions

View file

@ -350,7 +350,7 @@ describe('Backup', () => {
]).buffer,
}],
hasAttachments: 1,
hasFileAttachments: 0,
hasFileAttachments: undefined,
hasVisualMediaAttachments: 1,
quote: {
text: "Isn't it cute?",

View file

@ -182,7 +182,7 @@ describe('Message', () => {
size: 1111,
}],
hasAttachments: 1,
hasVisualMediaAttachments: 0,
hasVisualMediaAttachments: undefined,
hasFileAttachments: 1,
schemaVersion: Message.CURRENT_SCHEMA_VERSION,
};