Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be5b1604 authored by cketti's avatar cketti
Browse files

Don't upload sent message if Sent folder is local-only

parent f7ee43bc
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1601,11 +1601,13 @@ public class MessagingController {

            Timber.i("Moved sent message to folder '%s' (%d)", sentFolderServerId, sentFolderId);

            if (!sentFolder.isLocalOnly()) {
                PendingCommand command = PendingAppend.create(sentFolderId, message.getUid());
                queuePendingCommand(account, command);
                processPendingCommands(account);
            }
        }
    }

    private void handleSendFailure(Account account, LocalFolder localFolder, Message message, Exception exception)
            throws MessagingException {