mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Clean up AttachmentTable schema.
This commit is contained in:
committed by
Alex Hart
parent
62b142cdeb
commit
fe39b5e4e2
@@ -47,9 +47,7 @@ class MediaPreviewRepository {
|
||||
val mediaRecords = mutableListOf<MediaTable.MediaRecord>()
|
||||
var startingRow = -1
|
||||
while (cursor.moveToNext()) {
|
||||
if (startingAttachmentId.rowId == cursor.requireLong(AttachmentTable.ROW_ID) &&
|
||||
startingAttachmentId.uniqueId == cursor.requireLong(AttachmentTable.UNIQUE_ID)
|
||||
) {
|
||||
if (startingAttachmentId.id == cursor.requireLong(AttachmentTable.ID)) {
|
||||
startingRow = cursor.position
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user