Optimize loading stories
This commit is contained in:
parent
a827cb7c4e
commit
d6d53f9d18
5 changed files with 87 additions and 86 deletions
|
@ -353,6 +353,13 @@ export type GetKnownMessageAttachmentsResultType = Readonly<{
|
|||
attachments: ReadonlyArray<string>;
|
||||
}>;
|
||||
|
||||
export type GetAllStoriesResultType = ReadonlyArray<
|
||||
MessageType & {
|
||||
hasReplies: boolean;
|
||||
hasRepliesFromSelf: boolean;
|
||||
}
|
||||
>;
|
||||
|
||||
export type DataInterface = {
|
||||
close: () => Promise<void>;
|
||||
removeDB: () => Promise<void>;
|
||||
|
@ -520,9 +527,7 @@ export type DataInterface = {
|
|||
getAllStories: (options: {
|
||||
conversationId?: string;
|
||||
sourceUuid?: UUIDStringType;
|
||||
}) => Promise<Array<MessageType>>;
|
||||
hasStoryReplies: (storyId: string) => Promise<boolean>;
|
||||
hasStoryRepliesFromSelf: (storyId: string) => Promise<boolean>;
|
||||
}) => Promise<GetAllStoriesResultType>;
|
||||
// getNewerMessagesByConversation is JSON on server, full message on Client
|
||||
getMessageMetricsForConversation: (
|
||||
conversationId: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue