BackupRepository
Functions
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getMessages(pageSize: Int = DEFAULT_PAGE_SIZE): Flow<PagedData<Message.Standalone>>
Link copied to clipboard
abstract suspend fun getReactions(pageSize: Int = DEFAULT_PAGE_SIZE): Flow<PagedData<MessageReactions>>
Link copied to clipboard
abstract suspend fun insertConversations(conversations: List<Conversation>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun insertMessages(messages: List<Message.Standalone>, conversationsWithReadDate: Set<ConversationId> = emptySet()): Either<CoreFailure, Unit>
Marks restored history read up to its newest message, except in conversationsWithReadDate.
Link copied to clipboard
Link copied to clipboard