ConversationRepository
Functions
Link copied to clipboard
abstract suspend fun changeConversationName(conversationId: <Error class: unknown class>, conversationName: String): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun clearContent(conversationId: <Error class: unknown class>): Either<CoreFailure, Unit>
Deletes all conversation messages
Link copied to clipboard
abstract suspend fun deleteConversation(conversationId: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun fetchConversation(conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun fetchConversationIfUnknown(conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun fetchMlsOneToOneConversation(userId: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun fetchSentConnectionConversation(conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun getConversationById(conversationId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getConversationDetailsByMLSGroupId(mlsGroupId: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getConversationIds(type: <Error class: unknown class>, protocol: <Error class: unknown class>, teamId: <Error class: unknown class>? = null): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getConversationList(): Either<StorageFailure, <Error class: unknown class><List<<Error class: unknown class>>>>
Link copied to clipboard
abstract suspend fun getConversationMembers(conversationId: <Error class: unknown class>): Either<StorageFailure, List<<Error class: unknown class>>>
Fetches a list of all members' IDs or a given conversation including self user
Link copied to clipboard
abstract suspend fun getConversationProtocolInfo(conversationId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getConversationRecipients(conversationId: <Error class: unknown class>): Either<CoreFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getConversationRecipientsForCalling(conversationId: <Error class: unknown class>): Either<CoreFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getConversationsByGroupState(groupState: <Error class: unknown class>): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getConversationsByUserId(userId: <Error class: unknown class>): Either<CoreFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getConversationTypeById(conversationId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getConversationUnreadEventsCount(conversationId: <Error class: unknown class>): Either<StorageFailure, Long>
Link copied to clipboard
abstract suspend fun getGroupConversationsWithMembersWithBothDomains(firstDomain: String, secondDomain: String): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getGroupStatusMembersNamesAndHandles(groupID: <Error class: unknown class>): Either<StorageFailure, EpochChangesData>
Link copied to clipboard
abstract suspend fun getMLSSelfConversationId(): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getOneOnOneConversationsWithFederatedMembers(domain: String): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getOneOnOneConversationsWithOtherUser(otherUserId: <Error class: unknown class>, protocol: <Error class: unknown class>): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getProteusSelfConversationId(): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getRecipientById(conversationId: <Error class: unknown class>, userIDList: List<<Error class: unknown class>>): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getTeamConversationIdsReadyToCompleteMigration(teamId: <Error class: unknown class>): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun insertConversations(conversations: List<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun isInformedAboutDegradedMLSVerification(conversationId: <Error class: unknown class>): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun observeConversationById(conversationId: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, <Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeConversationDetailsById(conversationID: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, <Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeConversationList(): <Error class: unknown class><List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeConversationListDetails(fromArchive: Boolean, conversationFilter: <Error class: unknown class> = ConversationFilter.ALL): <Error class: unknown class><List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeConversationListDetailsWithEvents(fromArchive: Boolean = false, conversationFilter: <Error class: unknown class> = ConversationFilter.ALL): <Error class: unknown class><List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeConversationMembers(conversationID: <Error class: unknown class>): <Error class: unknown class><List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeDegradedConversationNotified(conversationId: <Error class: unknown class>): <Error class: unknown class><Boolean>
Link copied to clipboard
abstract suspend fun observeIsUserMember(conversationId: <Error class: unknown class>, userId: <Error class: unknown class>): <Error class: unknown class><Either<CoreFailure, Boolean>>
Link copied to clipboard
abstract suspend fun observeLegalHoldStatus(conversationId: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, <Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeLegalHoldStatusChangeNotified(conversationId: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, Boolean>>
Link copied to clipboard
abstract suspend fun observeOneToOneConversationWithOtherUser(otherUserId: <Error class: unknown class>): <Error class: unknown class><Either<CoreFailure, <Error class: unknown class>>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun persistConversation(conversation: <Error class: unknown class>, selfUserTeamId: String?, originatedFromEvent: Boolean = false): Either<CoreFailure, Boolean>
Creates a conversation from a new event
Link copied to clipboard
abstract suspend fun persistConversations(conversations: List<<Error class: unknown class>>, selfUserTeamId: <Error class: unknown class>?, originatedFromEvent: Boolean = false, invalidateMembers: Boolean = false): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun persistMembers(members: List<<Error class: unknown class>>, conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun selectMembersNameAndHandle(conversationId: <Error class: unknown class>): Either<StorageFailure, Map<<Error class: unknown class>, NameAndHandle>>
Link copied to clipboard
abstract suspend fun sendTypingIndicatorStatus(conversationId: <Error class: unknown class>, typingStatus: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun setDegradedConversationNotifiedFlag(conversationId: <Error class: unknown class>, value: Boolean): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun setInformedAboutDegradedMLSVerificationFlag(conversationId: <Error class: unknown class>, isInformed: Boolean): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun setLegalHoldStatusChangeNotified(conversationId: <Error class: unknown class>): Either<CoreFailure, Boolean>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateAccessInfo(conversationID: <Error class: unknown class>, access: Set<<Error class: unknown class>>, accessRole: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateArchivedStatusLocally(conversationId: <Error class: unknown class>, isArchived: Boolean, archivedStatusTimestamp: Long): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateArchivedStatusRemotely(conversationId: <Error class: unknown class>, isArchived: Boolean, archivedStatusTimestamp: Long): Either<NetworkFailure, Unit>
Link copied to clipboard
abstract suspend fun updateConversationGroupState(groupID: <Error class: unknown class>, groupState: <Error class: unknown class>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateConversationMemberRole(conversationId: <Error class: unknown class>, userId: <Error class: unknown class>, role: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateConversationModifiedDate(qualifiedID: <Error class: unknown class>, date: <Error class: unknown class>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateConversationNotificationDate(qualifiedID: <Error class: unknown class>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateConversationReadDate(qualifiedID: <Error class: unknown class>, date: <Error class: unknown class>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateLegalHoldStatus(conversationId: <Error class: unknown class>, legalHoldStatus: <Error class: unknown class>): Either<CoreFailure, Boolean>
Link copied to clipboard
abstract suspend fun updateMemberFromEvent(member: <Error class: unknown class>, conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateMlsVerificationStatus(verificationStatus: <Error class: unknown class>, conversationID: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateMutedStatusLocally(conversationId: <Error class: unknown class>, mutedStatus: <Error class: unknown class>, mutedStatusTimestamp: Long): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateMutedStatusRemotely(conversationId: <Error class: unknown class>, mutedStatus: <Error class: unknown class>, mutedStatusTimestamp: Long): Either<NetworkFailure, Unit>
Link copied to clipboard
abstract suspend fun updateProtocolLocally(conversationId: <Error class: unknown class>, protocol: <Error class: unknown class>): Either<CoreFailure, Boolean>
Update a conversation's protocol locally.
Link copied to clipboard
abstract suspend fun updateProtocolRemotely(conversationId: <Error class: unknown class>, protocol: <Error class: unknown class>): Either<CoreFailure, Boolean>
Update a conversation's protocol remotely.
Link copied to clipboard
abstract suspend fun updateReceiptMode(conversationId: <Error class: unknown class>, receiptMode: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateUserSelfDeletionTimer(conversationId: <Error class: unknown class>, selfDeletionTimer: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun whoDeletedMe(conversationId: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>?>