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
Pipeline #48455 passed with stage
in 4 minutes and 49 seconds
......@@ -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)
......
Supports Markdown
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