Skip to content

Commit 8dee5f7

Browse files
committed
fix: missing wrapper call for checkAuthenticationProblem
1 parent 6ada81a commit 8dee5f7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

legacy/core/src/main/java/com/fsck/k9/controller/MessagingControllerWrapper.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ class MessagingControllerWrapper(
201201
messagingController.markAllMessagesRead(account, folderId)
202202
}
203203

204+
fun checkAuthenticationProblem(id: AccountId) = {
205+
val account = getAccountDtoOrThrow(id)
206+
messagingController.checkAuthenticationProblem(account)
207+
}
208+
204209
fun isMoveCapable(message: MessageReference) = messagingController.isMoveCapable(message)
205210
fun isCopyCapable(message: MessageReference) = messagingController.isCopyCapable(message)
206211

legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ import net.thunderbird.core.featureflag.FeatureFlagResult
8989
import net.thunderbird.core.logging.legacy.Log
9090
import net.thunderbird.core.preference.GeneralSettingsManager
9191
import net.thunderbird.core.ui.theme.api.FeatureThemeProvider
92-
import net.thunderbird.feature.mail.account.api.AccountManager
9392
import net.thunderbird.feature.mail.message.list.domain.DomainContract
9493
import net.thunderbird.feature.mail.message.list.ui.dialog.SetupArchiveFolderDialogFragmentFactory
9594
import net.thunderbird.feature.notification.api.ui.InAppNotificationHost
@@ -1730,7 +1729,7 @@ class MessageListFragment :
17301729
messageListItems
17311730
.map { it.account }
17321731
.toSet()
1733-
.forEach(messagingController::checkAuthenticationProblem)
1732+
.forEach { account -> messagingController.checkAuthenticationProblem(account.id) }
17341733

17351734
resetActionMode()
17361735
computeBatchDirection()

0 commit comments

Comments
 (0)