fixed dead lock when sending pgp messages from quick reply. fixes #3246
This commit is contained in:
parent
af49d62086
commit
acea062abc
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue