mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 07:26:12 +00:00
fix: recipient autoDownload state being set incorrectly
This commit is contained in:
@@ -47,7 +47,6 @@ class DownloadDialog(private val recipient: Recipient,
|
||||
}
|
||||
|
||||
private fun download() {
|
||||
// TODO: add attachment download job trigger with attachmentID and databaseMessageID
|
||||
JobQueue.shared.createAndStartAttachmentDownload(databaseAttachment)
|
||||
dismiss()
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ public class RecipientDatabase extends Database {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put(AUTO_DOWNLOAD, shouldAutoDownloadAttachments ? 1 : 0);
|
||||
db.update(TABLE_NAME, values, ADDRESS+ " = ?", new String[]{recipient.getAddress().serialize()});
|
||||
recipient.resolve().setAutoDownloadAttachments(true);
|
||||
recipient.resolve().setAutoDownloadAttachments(shouldAutoDownloadAttachments);
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user