Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2e5c41f3 authored by Patrick Lang's avatar Patrick Lang Committed by GitHub
Browse files

Entries added throuh .ics import might not get synchronized due to missing dirty flag (#27)

Closes #177
parent 2677123f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ open class JtxICalObject(

    var collectionId: Long = collection.id

    var dirty: Boolean = true
    var dirty: Boolean = false     // default false to avoid instant sync after insert, can be overwritten
    var deleted: Boolean = false

    var fileName: String? = null
@@ -1610,6 +1610,7 @@ duration?.let(props::add)
        eTag.let { values.put(JtxContract.JtxICalObject.ETAG, it) }
        scheduleTag.let { values.put(JtxContract.JtxICalObject.SCHEDULETAG, it) }
        values.put(JtxContract.JtxICalObject.FLAGS, flags)
        values.put(JtxContract.JtxICalObject.DIRTY, dirty)

        return values
    }