mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Fun picker: Emoji skin tones picker and recent gifs
This commit is contained in:
@@ -44,6 +44,7 @@ import type {
|
||||
} from '../types/GroupSendEndorsements';
|
||||
import type { SyncTaskType } from '../util/syncTasks';
|
||||
import type { AttachmentBackupJobType } from '../types/AttachmentBackup';
|
||||
import type { GifType } from '../components/fun/panels/FunPanelGifs';
|
||||
|
||||
export type ReadableDB = Database & { __readable_db: never };
|
||||
export type WritableDB = ReadableDB & { __writable_db: never };
|
||||
@@ -706,6 +707,7 @@ type ReadableInterface = {
|
||||
getRecentStickers: (options?: { limit?: number }) => Array<StickerType>;
|
||||
|
||||
getRecentEmojis: (limit?: number) => Array<EmojiType>;
|
||||
getRecentGifs: (limit: number) => ReadonlyArray<GifType>;
|
||||
|
||||
getAllBadges(): Array<BadgeType>;
|
||||
|
||||
@@ -988,6 +990,9 @@ type WritableInterface = {
|
||||
|
||||
updateEmojiUsage: (shortName: string, timeUsed?: number) => void;
|
||||
|
||||
addRecentGif: (gif: GifType, lastUsedAt: number, maxRecents: number) => void;
|
||||
removeRecentGif: (gif: Pick<GifType, 'id'>) => void;
|
||||
|
||||
updateOrCreateBadges(badges: ReadonlyArray<BadgeType>): void;
|
||||
badgeImageFileDownloaded(url: string, localPath: string): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user