UserRepository
Functions
Link copied to clipboard
abstract suspend fun defederateUser(userId: <Error class: unknown class>): Either<CoreFailure, Unit>
Marks federated user as defederated in order to hold conversation history when backends stops federating.
Link copied to clipboard
Fetches user information for all of users id stored in the DB
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun fetchUsersByIds(qualifiedUserIdList: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun fetchUsersIfUnknownByIds(ids: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun fetchUsersLegalHoldConsent(userIds: Set<<Error class: unknown class>>): Either<CoreFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getAllRecipients(): Either<CoreFailure, <Error class: unknown class><List<<Error class: unknown class>>, List<<Error class: unknown class>>>>
Link copied to clipboard
abstract suspend fun getKnownUser(userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
abstract suspend fun getKnownUserMinimized(userId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun getNameAndHandle(userId: <Error class: unknown class>): Either<StorageFailure, NameAndHandle>
Link copied to clipboard
abstract suspend fun getOneOnOnConversationId(userId: <Error class: unknown class>): Either<StorageFailure, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getUsersMinimizedByQualifiedIDs(userIds: List<<Error class: unknown class>>): Either<StorageFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun getUsersSummaryByIds(userIds: List<<Error class: unknown class>>): Either<StorageFailure, List<<Error class: unknown class>>>
Gets users summary by their ids.
Link copied to clipboard
Link copied to clipboard
abstract suspend fun insertOrIgnoreIncompleteUsers(userIds: List<<Error class: unknown class>>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun insertUsersIfUnknown(users: List<<Error class: unknown class>>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun isAtLeastOneUserATeamMember(userId: List<<Error class: unknown class>>, teamId: <Error class: unknown class>): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun markAsDeleted(userId: List<<Error class: unknown class>>): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun markUserAsDeletedAndRemoveFromGroupConversations(userId: <Error class: unknown class>): Either<CoreFailure, List<<Error class: unknown class>>>
Link copied to clipboard
abstract suspend fun observeAllKnownUsers(): <Error class: unknown class><Either<StorageFailure, List<<Error class: unknown class>>>>
Link copied to clipboard
abstract fun observeAllKnownUsersNotInConversation(conversationId: <Error class: unknown class>): <Error class: unknown class><Either<StorageFailure, List<<Error class: unknown class>>>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun observeSelfUserWithTeam(): <Error class: unknown class><<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>?>>
Link copied to clipboard
abstract suspend fun observeUser(userId: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
abstract suspend fun removeUserBrokenAsset(qualifiedID: <Error class: unknown class>): Either<CoreFailure, Unit>
Removes broken user asset to avoid fetching it until next sync.
Link copied to clipboard
Updates users without metadata from the server.
Link copied to clipboard
abstract suspend fun updateActiveOneOnOneConversation(userId: <Error class: unknown class>, conversationId: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateActiveOneOnOneConversationIfNotSet(userId: <Error class: unknown class>, conversationId: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateOtherUserAvailabilityStatus(userId: <Error class: unknown class>, status: <Error class: unknown class>)
Link copied to clipboard
abstract suspend fun updateSelfUser(newName: String? = null, newAccent: Int? = null, newAssetId: String? = null): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun updateSupportedProtocols(protocols: Set<<Error class: unknown class>>): Either<CoreFailure, Unit>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun userById(userId: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>