ManageConversationFolderUseCase

Batch membership changes preserve every other folder and archived membership.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun delete(folderId: String): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun getFolder(folderId: String): Either<CoreFailure, FolderWithConversations>
Link copied to clipboard
abstract suspend fun reorder(folderIds: List<String>): Either<CoreFailure, Unit>

Saves a new order for the user's folders and syncs it, so other devices show the same order.

Link copied to clipboard
abstract suspend fun save(folderId: String, name: String, added: Set<ConversationId>, removed: Set<ConversationId>): Either<CoreFailure, ConversationFolder>
Link copied to clipboard
abstract suspend fun updateMembership(folderId: String, added: Set<ConversationId>, removed: Set<ConversationId>): Either<CoreFailure, ConversationFolder>

Changes membership of an existing folder without changing its name or type, including Favorites.