From 1a13224ad2e572c7b7f2407f2a8bec2e2bc21cfe Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 31 Jul 2023 16:56:32 +0000 Subject: [PATCH] Update to the new dc_accounts_new() API --- jni/dc_wrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jni/dc_wrapper.c b/jni/dc_wrapper.c index 2f1888d1d..f51afc245 100644 --- a/jni/dc_wrapper.c +++ b/jni/dc_wrapper.c @@ -227,7 +227,8 @@ JNIEXPORT jlong Java_com_b44t_messenger_DcAccounts_createAccountsCPtr(JNIEnv *en { CHAR_REF(osname); CHAR_REF(dir); - jlong accountsCPtr = (jlong)dc_accounts_new(osnamePtr, dirPtr); + int writable = 1; + jlong accountsCPtr = (jlong)dc_accounts_new(dirPtr, writable); CHAR_UNREF(dir); CHAR_UNREF(osname); return accountsCPtr;