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); + } } }