From 8514b16809e9ac608b025c951de5a007ceec3625 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Fri, 7 Mar 2025 09:33:09 +0100 Subject: [PATCH] docs: Update explanatory comment about impactedThreads --- .../mail/data/cache/mailboxContent/RefreshStrategies.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshStrategies.kt b/app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshStrategies.kt index aeb49862d1..0012a9b69c 100644 --- a/app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshStrategies.kt +++ b/app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshStrategies.kt @@ -30,7 +30,10 @@ interface RefreshStrategy { fun queryFolderThreads(folderId: String, realm: TypedRealm): List /** - * The returned Threads should be managed by Realm + * About the `impactedThreadsManaged`: + * This set will be updated throughout the whole process of handling added Messages. + * It represents all the Threads that will need to be recomputed to reflect the changes of the newly added Messages. + * We need to pass down a reference to the MutableSet to enable both addition and removal of Threads in it. */ fun handleAddedMessages( scope: CoroutineScope,