Skip to content

Commit

Permalink
refactor: Rename keepOldMessagesAndAddToSearchFolder() into `keepOl…
Browse files Browse the repository at this point in the history
…dMessagesData()`
  • Loading branch information
KevinBoulongne committed Mar 11, 2025
1 parent 85266ad commit 627d17e
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) {
fun MutableRealm.keepOldMessagesData(remoteThread: Thread) {

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

keepOldMessagesAndAddToSearchFolder(remoteThread)
keepOldMessagesData(remoteThread)

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

0 comments on commit 627d17e

Please sign in to comment.