From 021942fd4358ac88eb1642933731b8a9fa39622f Mon Sep 17 00:00:00 2001 From: haffenloher Date: Wed, 9 Mar 2016 00:18:35 +0100 Subject: [PATCH] Don't issue errors when group members unregister Fixes #2408 Fixes #4550 Closes #5318 // FREEBIE --- .../thoughtcrime/securesms/jobs/PushGroupSendJob.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java b/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java index c9ee51e9cc..30c9ad85a6 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java @@ -104,10 +104,16 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType { } database.addFailures(messageId, failures); - database.markAsSentFailed(messageId); database.markAsPush(messageId); - notifyMediaMessageDeliveryFailed(context, messageId); + if (e.getNetworkExceptions().isEmpty() && e.getUntrustedIdentityExceptions().isEmpty()) { + database.markAsSecure(messageId); + database.markAsSent(messageId); + markAttachmentsUploaded(messageId, message.getAttachments()); + } else { + database.markAsSentFailed(messageId); + notifyMediaMessageDeliveryFailed(context, messageId); + } } }