Update electron to 16.0.6

This commit is contained in:
Fedor Indutny
2022-01-03 17:43:42 -08:00
committed by GitHub
parent dca2364ba4
commit 46ddcc50f9
10 changed files with 7 additions and 51 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ export const GIF: React.FC<Props> = props => {
}
let gif: JSX.Element | undefined;
if (isNotDownloaded || isPending || window.isLegacyOS()) {
if (isNotDownloaded || isPending) {
gif = (
<Blurhash
hash={attachment.blurHash || defaultBlurHash(theme)}
@@ -6,7 +6,6 @@ import classNames from 'classnames';
import { noop } from 'lodash';
import { assert } from '../../util/assert';
import { showToast } from '../../util/showToast';
import type { LocalizerType } from '../../types/Util';
import type { AttachmentType } from '../../types/Attachment';
import { hasNotDownloaded } from '../../types/Attachment';
@@ -14,7 +13,6 @@ import type { DirectionType, MessageStatusType } from './Message';
import type { ComputePeaksResult } from '../GlobalAudioContext';
import { MessageMetadata } from './MessageMetadata';
import { ToastUnableToLoadAttachment } from '../ToastUnableToLoadAttachment';
import * as log from '../../logging/log';
export type Props = {
@@ -352,11 +350,6 @@ export const MessageAudio: React.FC<Props> = (props: Props) => {
}, [id, audio, isActive, isPlaying, currentTime]);
const toggleIsPlaying = () => {
if (window.isLegacyOS()) {
showToast(ToastUnableToLoadAttachment);
return;
}
setIsPlaying(!isPlaying);
if (!isActive && !isPlaying) {