~singpolyma/cheogram-android

acea062abcb4bef0875a38670370c31b924135e9 — Daniel Gultsch 5 years ago af49d62
fixed dead lock when sending pgp messages from quick reply. fixes #3246
M src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java => src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java +1 -1
@@ 29,7 29,7 @@ import eu.siacs.conversations.utils.MimeUtils;

public class PgpDecryptionService {

	protected final ArrayDeque<Message> messages = new ArrayDeque();
	protected final ArrayDeque<Message> messages = new ArrayDeque<>();
	protected final HashSet<Message> pendingNotifications = new HashSet<>();
	private final XmppConnectionService mXmppConnectionService;
	private OpenPgpApi openPgpApi = null;

M src/main/java/eu/siacs/conversations/services/XmppConnectionService.java => src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +0 -2
@@ 802,8 802,6 @@ public class XmppConnectionService extends Service {
            getPgpEngine().encrypt(message, new UiCallback<Message>() {
                @Override
                public void success(Message message) {
                    message.setEncryption(Message.ENCRYPTION_DECRYPTED);
                    sendMessage(message);
                    if (dismissAfterReply) {
                        markRead((Conversation) message.getConversation(), true);
                    } else {