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

Commit 75bd04e8 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

CardDAV KIND/MEMBER: always download group vCards after uploading them to keep...

CardDAV KIND/MEMBER: always download group vCards after uploading them to keep groups in sync with server
parent 566d10ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -156,13 +156,13 @@ class LocalGroup: AndroidGroup, LocalAddress {
        val values = ContentValues(3)
        if (fileName != null)
            values.put(COLUMN_FILENAME, fileName)
        values.put(COLUMN_ETAG, eTag)
        values.putNull(COLUMN_ETAG)     // don't save changed ETag but null, so that the group is downloaded again, so that pendingMembers is updated
        values.put(Groups.DIRTY, 0)
        update(values)

        if (fileName != null)
            this.fileName = fileName
        this.eTag = eTag
        this.eTag = null

        // update cached group memberships
        val batch = BatchOperation(addressBook.provider!!)