Multi-select forwarding and deleting
This commit is contained in:
parent
d986356eea
commit
1d549a9991
82 changed files with 2607 additions and 991 deletions
|
@ -18,6 +18,8 @@ import type { BadgeType } from '../badges/types';
|
|||
import type { RemoveAllConfiguration } from '../types/RemoveAllConfiguration';
|
||||
import type { LoggerType } from '../types/Logging';
|
||||
import type { ReadStatus } from '../messages/MessageReadStatus';
|
||||
import type { GetMessagesBetweenOptions } from './Server';
|
||||
import type { MessageTimestamps } from '../state/ducks/conversations';
|
||||
|
||||
export type AdjacentMessagesByConversationOptionsType = Readonly<{
|
||||
conversationId: string;
|
||||
|
@ -30,6 +32,14 @@ export type AdjacentMessagesByConversationOptionsType = Readonly<{
|
|||
requireVisualMediaAttachments?: boolean;
|
||||
}>;
|
||||
|
||||
export type GetNearbyMessageFromDeletedSetOptionsType = Readonly<{
|
||||
conversationId: string;
|
||||
lastSelectedMessage: MessageTimestamps;
|
||||
deletedMessageIds: ReadonlyArray<string>;
|
||||
storyId: string | undefined;
|
||||
includeStoryReplies: boolean;
|
||||
}>;
|
||||
|
||||
export type AttachmentDownloadJobTypeType =
|
||||
| 'long-message'
|
||||
| 'attachment'
|
||||
|
@ -529,7 +539,9 @@ export type DataInterface = {
|
|||
sent_at: number;
|
||||
}) => Promise<MessageType | undefined>;
|
||||
getMessageById: (id: string) => Promise<MessageType | undefined>;
|
||||
getMessagesById: (messageIds: Array<string>) => Promise<Array<MessageType>>;
|
||||
getMessagesById: (
|
||||
messageIds: ReadonlyArray<string>
|
||||
) => Promise<Array<MessageType>>;
|
||||
_getAllMessages: () => Promise<Array<MessageType>>;
|
||||
_removeAllMessages: () => Promise<void>;
|
||||
getAllMessageIds: () => Promise<Array<string>>;
|
||||
|
@ -573,7 +585,13 @@ export type DataInterface = {
|
|||
obsoleteId: string,
|
||||
currentId: string
|
||||
) => Promise<void>;
|
||||
|
||||
getMessagesBetween: (
|
||||
conversationId: string,
|
||||
options: GetMessagesBetweenOptions
|
||||
) => Promise<Array<string>>;
|
||||
getNearbyMessageFromDeletedSet: (
|
||||
options: GetNearbyMessageFromDeletedSetOptionsType
|
||||
) => Promise<string | null>;
|
||||
getUnprocessedCount: () => Promise<number>;
|
||||
getUnprocessedByIdsAndIncrementAttempts: (
|
||||
ids: ReadonlyArray<string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue