Skip to content

Commit 3b4612a

Browse files
Update initAndGetSearchFolderThreads() comments
1 parent 0d2716a commit 3b4612a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ class ThreadController @Inject constructor(
7070
}
7171

7272
/**
73-
* Initialize and retrieve the search threads obtained from the API.
73+
* Initialize and retrieve the search Threads obtained from the API.
7474
* - Format the remote threads to make them compatible with the existing logic.
7575
* - Preserve old message data if it already exists locally.
7676
* - Handle duplicates using the existing logic.
77-
* @param remoteThreads The list of API threads that need to be processed.
78-
* @param folderRole The role of the selected folder. This is only useful when selecting the spam or trash folder.
79-
* @return A list of search threads. The search only returns messages from spam or trash if we explicitly selected those folders
77+
* @param remoteThreads The list of API Threads that need to be processed.
78+
* @param filterFolder The selected Folder on which we filter the Search.
79+
* @return A list of search Threads. The search only returns Messages from SPAM or TRASH if we explicitly selected those folders
8080
*/
8181
suspend fun initAndGetSearchFolderThreads(
8282
remoteThreads: List<Thread>,
@@ -90,8 +90,8 @@ class ThreadController @Inject constructor(
9090

9191
val localMessage = MessageController.getMessage(remoteMessage.uid, realm = this)
9292

93-
// The Search only returns Messages from SPAM or TRASH if we explicitly selected those folders,
94-
// which is the reason why we can compute `isSpam` and `isTrashed` values so loosely.
93+
// The Search only returns Messages from TRASH if we explicitly selected this folder,
94+
// which is the reason why we can compute the `isTrashed` value so loosely.
9595
remoteMessage.initLocalValues(
9696
date = localMessage?.date ?: remoteMessage.date,
9797
isFullyDownloaded = localMessage?.isFullyDownloaded() ?: false,

0 commit comments

Comments
 (0)