Skip to content

Commit

Permalink
refactor: Remove now unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Mar 7, 2025
1 parent 98740be commit 4e54be7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ThreadController @Inject constructor(
filterFolder: Folder?,
): List<Thread> = withContext(ioDispatcher) {

fun MutableRealm.keepOldMessagesAndAddToSearchFolder(remoteThread: Thread, searchFolder: Folder) {
fun MutableRealm.keepOldMessagesAndAddToSearchFolder(remoteThread: Thread) {

remoteThread.messages.forEach { remoteMessage: Message ->
ensureActive()
Expand Down Expand Up @@ -145,7 +145,7 @@ class ThreadController @Inject constructor(
}
remoteThread.folderId = folderId

keepOldMessagesAndAddToSearchFolder(remoteThread, searchFolder)
keepOldMessagesAndAddToSearchFolder(remoteThread)

return@map remoteThread
}.also(searchFolder.threads::addAll)
Expand Down

0 comments on commit 4e54be7

Please sign in to comment.