From b26ec1996dc953f7f9b80861c8448a79b907392c Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Wed, 18 Aug 2021 11:56:53 +1000 Subject: [PATCH] yarn ready --- .../session/conversation/SessionRecording.tsx | 8 +------- ts/receiver/attachments.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/ts/components/session/conversation/SessionRecording.tsx b/ts/components/session/conversation/SessionRecording.tsx index 63ee29b35..7b6cf12dd 100644 --- a/ts/components/session/conversation/SessionRecording.tsx +++ b/ts/components/session/conversation/SessionRecording.tsx @@ -95,13 +95,7 @@ class SessionRecordingInner extends React.Component { // tslint:disable-next-line: cyclomatic-complexity public render() { - const { - isPlaying, - isPaused, - isRecording, - startTimestamp, - nowTimestamp, - } = this.state; + const { isPlaying, isPaused, isRecording, startTimestamp, nowTimestamp } = this.state; const hasRecordingAndPaused = !isRecording && !isPlaying; const hasRecording = !!this.audioElement?.duration && this.audioElement?.duration > 0; diff --git a/ts/receiver/attachments.ts b/ts/receiver/attachments.ts index a9134a75e..a4b804fb0 100644 --- a/ts/receiver/attachments.ts +++ b/ts/receiver/attachments.ts @@ -171,12 +171,12 @@ async function processPreviews(message: MessageModel, convo: ConversationModel): const image = message.isTrustedForAttachmentDownload() ? await AttachmentDownloads.addJob(item.image, { - messageId: message.id, - type: 'preview', - index, - isOpenGroupV2, - openGroupV2Details, - }) + messageId: message.id, + type: 'preview', + index, + isOpenGroupV2, + openGroupV2Details, + }) : null; return { ...item, image };