Adds logic around downloading stories

This commit is contained in:
Josh Perez
2022-03-28 21:10:08 -04:00
committed by GitHub
parent 9d3f0072a5
commit 3b5cc26fec
29 changed files with 645 additions and 149 deletions

View File

@@ -371,6 +371,7 @@ export type DataInterface = {
// searchMessagesInConversation is JSON on server, full message on Client
getMessageCount: (conversationId?: string) => Promise<number>;
getStoryCount: (conversationId: string) => Promise<number>;
saveMessage: (
data: MessageType,
options: {
@@ -561,6 +562,7 @@ export type DataInterface = {
conversationId?: UUIDStringType;
limit?: number;
}): Promise<Array<StoryReadType>>;
countStoryReadsByConversation(conversationId: string): Promise<number>;
removeAll: () => Promise<void>;
removeAllConfiguration: (type?: RemoveAllConfiguration) => Promise<void>;