Fix DeleteProfile in Android
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-06-22 12:44:36 -07:00
parent ecd1b71a8c
commit ee2fd2ae98
2 changed files with 3 additions and 3 deletions

View File

@ -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) ?: ""

View File

@ -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