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

@ -228,6 +228,10 @@ export type StickerType = Readonly<{
width: number;
height: number;
version: 1 | 2;
localKey?: string;
size?: number;
}>;
export const StickerPackStatuses = [
@ -806,6 +810,9 @@ export type DataInterface = {
) => Promise<void>;
updateStickerPackInfo: (info: StickerPackInfoType) => Promise<void>;
createOrUpdateSticker: (sticker: StickerType) => Promise<void>;
createOrUpdateStickers: (
sticker: ReadonlyArray<StickerType>
) => Promise<void>;
updateStickerLastUsed: (
packId: string,
stickerId: number,