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

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

parent 914afc8f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment