mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 12:38:39 +00:00
fix queuing of pending parts that had data already
fixes #4061 Closes #4073 // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
ed1d411bde
commit
0e06e2de97
@@ -298,6 +298,11 @@ public class PartDatabase extends Database {
|
||||
|
||||
if (!cursor.isNull(sizeColumn))
|
||||
part.setDataSize(cursor.getLong(cursor.getColumnIndexOrThrow(SIZE)));
|
||||
|
||||
int dataColumn = cursor.getColumnIndexOrThrow(DATA);
|
||||
|
||||
if (!cursor.isNull(dataColumn))
|
||||
part.setDataUri(PartAuthority.getPartUri(part.getPartId()));
|
||||
}
|
||||
|
||||
private ContentValues getContentValuesForPart(PduPart part) throws MmsException {
|
||||
@@ -440,8 +445,6 @@ public class PartDatabase extends Database {
|
||||
|
||||
getPartValues(part, cursor);
|
||||
|
||||
part.setDataUri(PartAuthority.getPartUri(part.getPartId()));
|
||||
|
||||
return part;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user