mirror of
https://github.com/etesync/android
synced 2025-02-08 21:52:47 +00:00
Fix journal readOnly json to use the correct field name.
This commit is contained in:
parent
e7186df6b8
commit
a43d0fceb8
@ -129,7 +129,7 @@ class JournalManager(httpClient: OkHttpClient, remote: HttpUrl) : BaseManager()
|
|||||||
val owner: String? = null
|
val owner: String? = null
|
||||||
val key: ByteArray? = null
|
val key: ByteArray? = null
|
||||||
var version = -1
|
var version = -1
|
||||||
val isReadOnly = false
|
val readOnly = false
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
private var hmac: ByteArray? = null
|
private var hmac: ByteArray? = null
|
||||||
|
@ -168,7 +168,7 @@ abstract class SyncAdapterService : Service() {
|
|||||||
val journalEntity = JournalEntity.fetchOrCreate(data, collection)
|
val journalEntity = JournalEntity.fetchOrCreate(data, collection)
|
||||||
journalEntity.owner = journal.owner
|
journalEntity.owner = journal.owner
|
||||||
journalEntity.encryptedKey = journal.key
|
journalEntity.encryptedKey = journal.key
|
||||||
journalEntity.isReadOnly = journal.isReadOnly
|
journalEntity.isReadOnly = journal.readOnly
|
||||||
journalEntity.isDeleted = false
|
journalEntity.isDeleted = false
|
||||||
data.upsert(journalEntity)
|
data.upsert(journalEntity)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user