Update electron to 24.2.0
This commit is contained in:
parent
9ad9b4da0f
commit
48545d6a83
9 changed files with 41 additions and 35 deletions
|
@ -85,9 +85,15 @@ export function SmartStoryCreator(): JSX.Element | null {
|
|||
);
|
||||
|
||||
const addStoryData = useSelector(getAddStoryData);
|
||||
const file = addStoryData?.type === 'Media' ? addStoryData.file : undefined;
|
||||
let file: File | undefined;
|
||||
const isSending = addStoryData?.sending || false;
|
||||
|
||||
if (addStoryData?.type === 'Media') {
|
||||
// Note that the source type is ReadonlyDeep<File>, but browser APIs don't
|
||||
// support that. Hence the cast.
|
||||
file = addStoryData.file as File;
|
||||
}
|
||||
|
||||
const recentEmojis = useRecentEmojis();
|
||||
const skinTone = useSelector<StateType, number>(getEmojiSkinTone);
|
||||
const { onSetSkinTone } = useItemsActions();
|
||||
|
|
|
@ -10,7 +10,7 @@ import type { InMemoryAttachmentDraftType } from '../types/Attachment';
|
|||
import { fileToBytes } from './fileToBytes';
|
||||
|
||||
export async function handleVideoAttachment(
|
||||
file: Readonly<File>
|
||||
file: File
|
||||
): Promise<InMemoryAttachmentDraftType> {
|
||||
const objectUrl = URL.createObjectURL(file);
|
||||
if (!objectUrl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue