Document incoming and outgoing attachments fields

Note how outgoing message attachments only have 4 fields. This presumably means
the others are not used in our code and could be discarded for simplicity.
This commit is contained in:
Daniel Gasienica 2018-02-13 11:37:31 -05:00
parent fdc3ef289d
commit 07e9114e65
1 changed files with 12 additions and 4 deletions

View File

@ -10,17 +10,25 @@ const { autoOrientImage } = require('../auto_orient_image');
// 1 --> 2, etc., similar to how we do database migrations:
const CURRENT_PROCESS_VERSION = 1;
// // Fields
// // Incoming message attachment fields
// {
// id: string
// contentType: MIMEType
// key: ArrayBuffer
// size: integer
// thumbnail: ArrayBuffer
// data: ArrayBuffer
// digest: ArrayBuffer
// fileName: string
// flags: null
// key: ArrayBuffer
// size: integer
// thumbnail: ArrayBuffer
// }
// // Outgoing message attachment fields
// {
// contentType: MIMEType
// data: ArrayBuffer
// fileName: string
// size: integer
// }
// Middleware