aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/crypto
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-15 14:29:25 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-19 20:07:56 +0200
commit19cd1ef23438829b36b189eca18cbb98ddf5fbae (patch)
tree8a8c824374a70e0301e898bdfef41b1b0bf1d0d8 /src/main/java/eu/siacs/conversations/crypto
parent018ee63ef49c504d8874aa4c122d2f9494473817 (diff)
replace corrected messages in decryption queue
Diffstat (limited to 'src/main/java/eu/siacs/conversations/crypto')
-rw-r--r--src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java b/src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java
index 45dfd7d92..07de11649 100644
--- a/src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java
+++ b/src/main/java/eu/siacs/conversations/crypto/PgpDecryptionService.java
@@ -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