You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b308012
Browse filesBrowse the repository at this point in the historyBrowse files
feat(db-repository): replace destroy with destroyAllByServerId and destroyByServerId
- implement message destruction in DefaultMessageLifecycleRepository instead of TODO
- add MessageQueryRepository.getAllServerIdByFolderId and back K9BackendFolder clearAllMessages/destroyMessages with the new repositories
- make BackendFolder.destroyMessages and clearAllMessages suspend
- introduce MessageQueryError.AccountNotFound and UnhandledError, making throwable nullable
GG-ID: c-99f9e08
GG-Parent: c-145c77c
Copy file name to clipboardExpand all lines: app-common/src/main/kotlin/net/thunderbird/app/common/feature/mail/message/data/repository/DefaultMessageLifecycleRepository.kt
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -225,14 +225,24 @@ class DefaultMessageLifecycleRepository(
Copy file name to clipboardExpand all lines: app-common/src/test/kotlin/net/thunderbird/app/common/feature/mail/message/data/repository/DefaultMessageLifecycleRepositoryTest.kt
+114Lines changed: 114 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,115 @@ class DefaultMessageLifecycleRepositoryTest {
483
483
484
484
// endregion [copyAll]
485
485
486
+
// region [destroyAllByServerId]
487
+
488
+
@Test
489
+
fun`destroyAllByServerId should destroy the messages by folder and server ids when the store succeeds`() =
490
+
runTest {
491
+
// Arrange
492
+
val serverIds =listOf(MessageServerId("100"), MessageServerId("101"))
493
+
494
+
// Act
495
+
val outcome = testSubject.destroyAllByServerId(serverIds, folderId, accountId)
0 commit comments