1
0
mirror of https://github.com/etesync/android synced 2025-02-02 02:41:31 +00:00

Fix journal readOnly json to use the correct field name.

This commit is contained in:
Tom Hacohen 2019-02-13 11:02:28 +00:00
parent e7186df6b8
commit a43d0fceb8
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class JournalManager(httpClient: OkHttpClient, remote: HttpUrl) : BaseManager()
val owner: String? = null
val key: ByteArray? = null
var version = -1
val isReadOnly = false
val readOnly = false
@Transient
private var hmac: ByteArray? = null

View File

@ -168,7 +168,7 @@ abstract class SyncAdapterService : Service() {
val journalEntity = JournalEntity.fetchOrCreate(data, collection)
journalEntity.owner = journal.owner
journalEntity.encryptedKey = journal.key
journalEntity.isReadOnly = journal.isReadOnly
journalEntity.isReadOnly = journal.readOnly
journalEntity.isDeleted = false
data.upsert(journalEntity)