mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Link previews in all media
This commit is contained in:
@@ -58,6 +58,7 @@ import type { SyncTaskType } from '../util/syncTasks.preload.js';
|
||||
import type { AttachmentBackupJobType } from '../types/AttachmentBackup.std.js';
|
||||
import type { AttachmentType } from '../types/Attachment.std.js';
|
||||
import type { MediaItemMessageType } from '../types/MediaItem.std.js';
|
||||
import type { LinkPreviewType } from '../types/message/LinkPreviews.std.js';
|
||||
import type { GifType } from '../components/fun/panels/FunPanelGifs.dom.js';
|
||||
import type { NotificationProfileType } from '../types/NotificationProfile.std.js';
|
||||
import type { DonationReceipt } from '../types/Donations.std.js';
|
||||
@@ -590,7 +591,15 @@ export type GetOlderMediaOptionsType = Readonly<{
|
||||
messageId?: string;
|
||||
receivedAt?: number;
|
||||
sentAt?: number;
|
||||
type: 'media' | 'files';
|
||||
type: 'media' | 'documents';
|
||||
}>;
|
||||
|
||||
export type GetOlderLinkPreviewsOptionsType = Readonly<{
|
||||
conversationId: string;
|
||||
limit: number;
|
||||
messageId?: string;
|
||||
receivedAt?: number;
|
||||
sentAt?: number;
|
||||
}>;
|
||||
|
||||
export type MediaItemDBType = Readonly<{
|
||||
@@ -599,6 +608,11 @@ export type MediaItemDBType = Readonly<{
|
||||
message: MediaItemMessageType;
|
||||
}>;
|
||||
|
||||
export type LinkPreviewMediaItemDBType = Readonly<{
|
||||
preview: LinkPreviewType;
|
||||
message: MediaItemMessageType;
|
||||
}>;
|
||||
|
||||
export type KyberPreKeyTripleType = Readonly<{
|
||||
id: PreKeyIdType;
|
||||
signedPreKeyId: number;
|
||||
@@ -829,6 +843,9 @@ type ReadableInterface = {
|
||||
// getOlderMessagesByConversation is JSON on server, full message on Client
|
||||
hasMedia: (conversationId: string) => boolean;
|
||||
getOlderMedia: (options: GetOlderMediaOptionsType) => Array<MediaItemDBType>;
|
||||
getOlderLinkPreviews: (
|
||||
options: GetOlderLinkPreviewsOptionsType
|
||||
) => Array<LinkPreviewMediaItemDBType>;
|
||||
getAllStories: (options: {
|
||||
conversationId?: string;
|
||||
sourceServiceId?: ServiceIdString;
|
||||
|
||||
Reference in New Issue
Block a user