diff --git a/android/app/src/main/kotlin/im/cwtch/flwtch/FlwtchWorker.kt b/android/app/src/main/kotlin/im/cwtch/flwtch/FlwtchWorker.kt index 48f908c..90d751c 100644 --- a/android/app/src/main/kotlin/im/cwtch/flwtch/FlwtchWorker.kt +++ b/android/app/src/main/kotlin/im/cwtch/flwtch/FlwtchWorker.kt @@ -181,8 +181,8 @@ class FlwtchWorker(context: Context, parameters: WorkerParameters) : } "DeleteProfile" -> { val profile = (a.get("ProfileOnion") as? String) ?: "" - val groupHandle = (a.get("pass") as? String) ?: "" - Cwtch.deleteProfile(profile, groupHandle) + val pass = (a.get("pass") as? String) ?: "" + Cwtch.deleteProfile(profile, pass) } "LeaveConversation" -> { val profile = (a.get("ProfileOnion") as? String) ?: "" diff --git a/lib/cwtch/gomobile.dart b/lib/cwtch/gomobile.dart index 06e3a05..d9be08c 100644 --- a/lib/cwtch/gomobile.dart +++ b/lib/cwtch/gomobile.dart @@ -83,7 +83,7 @@ class CwtchGomobile implements Cwtch { // ignore: non_constant_identifier_names void DeleteProfile(String onion, String pass) { - cwtchPlatform.invokeMethod("DeleteProfile", {"onion": onion, "pass": pass}); + cwtchPlatform.invokeMethod("DeleteProfile", {"ProfileOnion": onion, "pass": pass}); } // ignore: non_constant_identifier_names