Don't issue errors when group members unregister

Fixes #2408
Fixes #4550
Closes #5318

// FREEBIE
This commit is contained in:
haffenloher 2016-03-09 00:18:35 +01:00 committed by Moxie Marlinspike
parent fd43dbdcdb
commit 021942fd43

View File

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