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

Commit 87f5aee2 authored by Nihar Thakkar's avatar Nihar Thakkar Committed by Romain Hunault
Browse files

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

parent 914afc8f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
                }

                val fileName = local.fileName!!
                useRemote(DavResource(httpClient.okHttpClient, collectionURL.newBuilder().addPathSegment(fileName).build())) { remote ->
                useRemote(DavResource(httpClient.okHttpClient, collectionURL.newBuilder().addPathSegment(fileName).build(), accountSettings.credentials().authState?.accessToken)) { remote ->
                    // generate entity to upload (VCard, iCal, whatever)
                    val body = prepareUpload(local)