replace corrected messages in decryption queue
This commit is contained in:
parent
018ee63ef4
commit
19cd1ef234
2 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,11 @@ public class PgpDecryptionService {
|
|||
this.pendingNotifications.removeAll(discards);
|
||||
}
|
||||
|
||||
public synchronized void discard(Message message) {
|
||||
this.messages.remove(message);
|
||||
this.pendingNotifications.remove(message);
|
||||
}
|
||||
|
||||
protected synchronized void decryptNext() {
|
||||
if (pendingIntent == null
|
||||
&& getOpenPgpApi() != null
|
||||
|
|
|
@ -483,6 +483,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
sendMessageReceipts(account, packet);
|
||||
}
|
||||
if (replacedMessage.getEncryption() == Message.ENCRYPTION_PGP) {
|
||||
conversation.getAccount().getPgpDecryptionService().discard(replacedMessage);
|
||||
conversation.getAccount().getPgpDecryptionService().decrypt(replacedMessage, false);
|
||||
}
|
||||
return;
|
||||
|
|
Reference in a new issue