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

Commit f9130e2b authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

5687-Save_message_as_simpleMessage_when_openPgp_is_not_ready

parent 55c27603
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -102,16 +102,11 @@ public class PgpMessageBuilder extends MessageBuilder {
            return;
        }

        if (openPgpKeyId == null) {
        if (openPgpKeyId == null || !cryptoStatus.isProviderStateOk()) {
            queueMessageBuildSuccess(currentProcessedMimeMessage);
            return;
        }

        if (!cryptoStatus.isProviderStateOk()) {
            queueMessageBuildException(new MessagingException("OpenPGP Provider is not ready!"));
            return;
        }

        addAutocryptHeaderIfAvailable(openPgpKeyId);
        if (isDraft()) {
            addDraftStateHeader();