Skip to content

Commit ac88631

Browse files
authored
fix: don't warn 'Sent folder not found' if 'Upload sent messages to Sent folder' is off (#10524)
2 parents 6b9d154 + 3437b35 commit ac88631

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

legacy/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ protected void onResume() {
622622
}
623623

624624
private void triggerIfNeededSentFolderNotFoundInAppNotification() {
625-
if (account != null && account.getSentFolderId() == null) {
625+
if (account != null && account.isUploadSentMessages() && !account.hasSentFolder()) {
626626
final SentFolderNotFoundNotification notification = NotificationFactoryCoroutineCompat.create(
627627
continuation -> SentFolderNotFoundNotification(account.getUuid(), continuation)
628628
);
@@ -875,7 +875,8 @@ public void performSendAfterChecks() {
875875
return;
876876
}
877877

878-
if (!ignoreSentFolderNotAssigned && !account.hasSentFolder()) {
878+
if (account.isUploadSentMessages()
879+
&& !ignoreSentFolderNotAssigned && !account.hasSentFolder()) {
879880
sentFolderNotFoundDialogFragmentFactory.show(account.getUuid(), getSupportFragmentManager());
880881
return;
881882
}

0 commit comments

Comments
 (0)