mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 03:57:42 +00:00
fix quote attachments
This commit is contained in:
@@ -84,7 +84,8 @@ class DatabaseAttachmentProvider(context: Context, helper: SQLCipherOpenHelper)
|
||||
}
|
||||
|
||||
override fun getAttachmentIDsFor(messageID: Long): List<Long> {
|
||||
return DatabaseFactory.getAttachmentDatabase(context).getAttachmentsForMessage(messageID).map {
|
||||
return DatabaseFactory.getAttachmentDatabase(context).getAttachmentsForMessage(messageID).mapNotNull {
|
||||
if (it.isQuote) return@mapNotNull null
|
||||
it.attachmentId.rowId
|
||||
}
|
||||
}
|
||||
|
@@ -45,6 +45,7 @@ public class PagingMediaLoader extends AsyncLoader<Pair<Cursor, Integer>> {
|
||||
return new Pair<>(cursor, leftIsRecent ? cursor.getPosition() : cursor.getCount() - 1 - cursor.getPosition());
|
||||
}
|
||||
}
|
||||
cursor.close();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user