remove decrypted_at field from saving message models as unused

pull/2142/head
Audric Ackermann 4 years ago
parent 6f5bca6660
commit 7d9f970b2c
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -19,7 +19,6 @@ export interface MessageAttributes {
body?: string; body?: string;
expirationStartTimestamp: number; expirationStartTimestamp: number;
read_by: Array<string>; read_by: Array<string>;
decrypted_at: number;
expires_at?: number; expires_at?: number;
type: MessageModelType; type: MessageModelType;
group_update?: MessageGroupUpdate; group_update?: MessageGroupUpdate;
@ -135,7 +134,6 @@ export interface MessageAttributesOptionals {
body?: string; body?: string;
expirationStartTimestamp?: number; expirationStartTimestamp?: number;
read_by?: Array<string>; read_by?: Array<string>;
decrypted_at?: number;
expires_at?: number; expires_at?: number;
type: MessageModelType; type: MessageModelType;
group_update?: MessageGroupUpdate; group_update?: MessageGroupUpdate;

@ -233,7 +233,6 @@ async function handleRegularMessage(
attachments: rawDataMessage.attachments, attachments: rawDataMessage.attachments,
body: rawDataMessage.body, body: rawDataMessage.body,
conversationId: conversation.id, conversationId: conversation.id,
decrypted_at: now,
messageHash, messageHash,
errors: [], errors: [],
}); });

@ -244,7 +244,7 @@ async function _runJob(job: any) {
logger.error( logger.error(
`_runJob: Failed to download attachment type ${type} for message ${found?.idForLogging()}, attempt ${currentAttempt}:`, `_runJob: Failed to download attachment type ${type} for message ${found?.idForLogging()}, attempt ${currentAttempt}:`,
error && error.stack ? error.stack : error error && error.message ? error.message : error
); );
const failedJob = { const failedJob = {

@ -13,7 +13,6 @@ export type IncomingMessage = Readonly<
// Optional // Optional
body?: string; body?: string;
decrypted_at?: number;
errors?: Array<any>; errors?: Array<any>;
expireTimer?: number; expireTimer?: number;
flags?: number; flags?: number;

Loading…
Cancel
Save