Skip to content

Commit 31eb963

Browse files
docs: Update explanatory comment about impactedThreads
1 parent 3764d9a commit 31eb963

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshStrategies.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ interface RefreshStrategy {
3030
fun queryFolderThreads(folderId: String, realm: TypedRealm): List<Thread>
3131

3232
/**
33-
* The returned Threads should be managed by Realm
33+
* About the `impactedThreadsManaged`:
34+
* This set will be updated throughout the whole process of handling added Messages.
35+
* It represents all the Threads that have been concerned by adding new Messages in the current Folder.
36+
* It should be the full set given everywhere, because sometimes we are adding Threads to it, and sometimes we are removing.
3437
*/
3538
fun handleAddedMessages(
3639
scope: CoroutineScope,

0 commit comments

Comments
 (0)