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

Commit 020fa428 authored by Nihar Thakkar's avatar Nihar Thakkar Committed by Sumit Pundir
Browse files

Fix #30: Fix bug where editing of contacts was not possible for OAuth accounts

parent 7fb1f299
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
                if (fileName != null) {
                    Logger.log.info("$fileName has been deleted locally -> deleting from server (ETag ${local.eTag})")

                    useRemote(DavResource(httpClient.okHttpClient, collectionURL.newBuilder().addPathSegment(fileName).build())) { remote ->
                    useRemote(DavResource(httpClient.okHttpClient, collectionURL.newBuilder().addPathSegment(fileName).build(), accountSettings.credentials().authState?.accessToken)) { remote ->
                        try {
                            remote.delete(local.eTag) {}
                            numDeleted++