mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-21 10:41:31 +00:00
parent
adc6fc8524
commit
21b7dccf1c
@ -67,6 +67,11 @@ public class AttachmentDownloadJob extends MasterSecretJob implements Injectable
|
|||||||
final PartId partId = new PartId(partRowId, partUniqueId);
|
final PartId partId = new PartId(partRowId, partUniqueId);
|
||||||
final PduPart part = DatabaseFactory.getPartDatabase(context).getPart(partId);
|
final PduPart part = DatabaseFactory.getPartDatabase(context).getPart(partId);
|
||||||
|
|
||||||
|
if (part == null) {
|
||||||
|
Log.w(TAG, "part no longer exists.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Log.w(TAG, "Downloading push part " + partId);
|
Log.w(TAG, "Downloading push part " + partId);
|
||||||
|
|
||||||
retrievePart(masterSecret, part, messageId);
|
retrievePart(masterSecret, part, messageId);
|
||||||
|
@ -78,8 +78,8 @@ public class MediaNetworkRequirement implements Requirement, ContextDependent {
|
|||||||
final PartDatabase db = DatabaseFactory.getPartDatabase(context);
|
final PartDatabase db = DatabaseFactory.getPartDatabase(context);
|
||||||
final PduPart part = db.getPart(partId);
|
final PduPart part = db.getPart(partId);
|
||||||
if (part == null) {
|
if (part == null) {
|
||||||
Log.w(TAG, "part was null");
|
Log.w(TAG, "part was null, returning vacuous true");
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.w(TAG, "part transfer progress is " + part.getTransferProgress());
|
Log.w(TAG, "part transfer progress is " + part.getTransferProgress());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user