yarn ready

pull/1846/head
Warrick Corfe-Tan 4 years ago
parent 48b4aab63c
commit b26ec1996d

@ -95,13 +95,7 @@ class SessionRecordingInner extends React.Component<Props, State> {
// tslint:disable-next-line: cyclomatic-complexity // tslint:disable-next-line: cyclomatic-complexity
public render() { public render() {
const { const { isPlaying, isPaused, isRecording, startTimestamp, nowTimestamp } = this.state;
isPlaying,
isPaused,
isRecording,
startTimestamp,
nowTimestamp,
} = this.state;
const hasRecordingAndPaused = !isRecording && !isPlaying; const hasRecordingAndPaused = !isRecording && !isPlaying;
const hasRecording = !!this.audioElement?.duration && this.audioElement?.duration > 0; const hasRecording = !!this.audioElement?.duration && this.audioElement?.duration > 0;

@ -171,12 +171,12 @@ async function processPreviews(message: MessageModel, convo: ConversationModel):
const image = message.isTrustedForAttachmentDownload() const image = message.isTrustedForAttachmentDownload()
? await AttachmentDownloads.addJob(item.image, { ? await AttachmentDownloads.addJob(item.image, {
messageId: message.id, messageId: message.id,
type: 'preview', type: 'preview',
index, index,
isOpenGroupV2, isOpenGroupV2,
openGroupV2Details, openGroupV2Details,
}) })
: null; : null;
return { ...item, image }; return { ...item, image };

Loading…
Cancel
Save