New attachment storage system

This commit is contained in:
Fedor Indutny 2024-07-11 12:44:09 -07:00 committed by GitHub
parent 273e1ccb15
commit 28664a606f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
161 changed files with 2418 additions and 1562 deletions

View file

@ -4,7 +4,7 @@
import React, { memo } from 'react';
import { useSelector } from 'react-redux';
import { StickerPreviewModal } from '../../components/stickers/StickerPreviewModal';
import { getIntl, getStickersPath, getTempPath } from '../selectors/user';
import { getIntl } from '../selectors/user';
import {
getBlessedPacks,
getPacks,
@ -23,8 +23,6 @@ export const SmartStickerPreviewModal = memo(function SmartStickerPreviewModal({
const i18n = useSelector(getIntl);
const packs = useSelector(getPacks);
const blessedPacks = useSelector(getBlessedPacks);
const stickersPath = useSelector(getStickersPath);
const tempPath = useSelector(getTempPath);
const { downloadStickerPack, installStickerPack, uninstallStickerPack } =
useStickersActions();
@ -32,7 +30,7 @@ export const SmartStickerPreviewModal = memo(function SmartStickerPreviewModal({
const packDb = packs[packId];
const pack = packDb
? translatePackFromDB(packDb, packs, blessedPacks, stickersPath, tempPath)
? translatePackFromDB(packDb, packs, blessedPacks)
: undefined;
return (