修复按键不能打断的bug
authorxue <2144439972@qq.com>
Mon, 12 Jan 2026 03:02:44 +0000 (11:02 +0800)
committerxue <2144439972@qq.com>
Mon, 12 Jan 2026 03:02:44 +0000 (11:02 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp

index 266e263..c3ad034 100644 (file)
@@ -463,13 +463,9 @@ namespace OHOS
             // ThunderBirdMainView::ComplexOperationThread(true);
             #else
             AI_ForceInterrupt();
-            int endRet = ln_ws_end_audio_chat();
+            ln_ws_end_audio_chat();
             // 只有在成功结束音频聊天时才发送打断请求(确保chat_id有效)
-            if (endRet == 0) {
-                ln_ws_send_voice_chat_interrupt("新对话开始");
-            } else {
-                WEARABLE_LOGW(WEARABLE_LOG_MODULE_APP, "HandleDialogueFunction: ln_ws_end_audio_chat failed (ret=%d), skip sending interrupt", endRet);
-            }
+            ln_ws_send_voice_chat_interrupt("新对话开始");
             #endif // 0
             auto* dialogueView = ThunderBirdDialogueView::GetInstance();
             if (dialogueView) {