Skip to content

Commit

Permalink
refactor: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Mar 7, 2025
1 parent 31d4a9c commit 562e803
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,6 @@ class RefreshController @Inject constructor(
return impactedThreadsUnmanaged
}

private fun MutableRealm.updateExistingMessage(remoteMessage: Message) {
val isMessageAlreadyInRealm = MessageController.getMessage(remoteMessage.uid, realm = this) != null
if (isMessageAlreadyInRealm) MessageController.upsertMessage(remoteMessage, realm = this)
}

private fun initMessageLocalValues(remoteMessage: Message, folder: Folder) {
remoteMessage.initLocalValues(
MessageInitialState(
Expand Down Expand Up @@ -772,8 +767,8 @@ class RefreshController @Inject constructor(
}
//endregion

// SCHEDULED_DRAFTS and SNOOZED need to be refreshed often because the folders only appear in the menu folder when there is at
// least one email in it.
// SCHEDULED_DRAFTS and SNOOZED need to be refreshed often because these folders
// only appear in the MenuDrawer when there is at least 1 email in it.
private val FOLDER_ROLES_TO_REFRESH_TOGETHER = setOf(
FolderRole.INBOX,
FolderRole.SENT,
Expand Down

0 comments on commit 562e803

Please sign in to comment.