fix(core): convert mobile command name to camelCase, closes #8872 (#8983)

This commit is contained in:
Lucas Fernandes Nogueira 2024-02-26 12:54:31 -03:00 committed by GitHub
parent a8a2cb6fb4
commit 6cb601d42e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Convert the command name to camelCase when executing a mobile plugin command.

View File

@ -1232,7 +1232,7 @@ fn main() {
if let Err(e) = crate::plugin::mobile::run_command(
plugin,
&app_handle,
message.command,
heck::AsLowerCamelCase(message.command).to_string(),
payload,
move |response| match response {
Ok(r) => resolver_.resolve(r),