From 75026ad57f4fbb5a82baa0653373061ae0c3287c Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 18 Apr 2023 14:09:36 -0700 Subject: [PATCH] Upgrade VerifyOrResume API --- android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt | 2 +- lib/cwtch/ffi.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt b/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt index 3b3c4d85..7f19e000 100644 --- a/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt +++ b/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt @@ -442,7 +442,7 @@ class MainActivity: FlutterActivity() { val profile: String = call.argument("ProfileOnion") ?: "" val conversation: Int = call.argument("conversation") ?: 0 val fileKey: String = call.argument("fileKey") ?: "" - Cwtch.verifyOrResumeDownload(profile, conversation.toLong(), fileKey) + Cwtch.verifyOrResumeDownloadDefaultLimit(profile, conversation.toLong(), fileKey) } "UpdateSettings" -> { val json: String = call.argument("json") ?: "" diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index b5ed651c..5c70e7bc 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -498,7 +498,7 @@ class CwtchFfi implements Cwtch { @override // ignore: non_constant_identifier_names void VerifyOrResumeDownload(String profileOnion, int contactHandle, String filekey) { - var fn = library.lookup>("c_VerifyOrResumeDownload"); + var fn = library.lookup>("c_VerifyOrResumeDownloadDefaultLimit"); // ignore: non_constant_identifier_names final VerifyOrResumeDownload = fn.asFunction(); final u1 = profileOnion.toNativeUtf8();