From: xue <2144439972@qq.com> Date: Mon, 12 Jan 2026 03:02:44 +0000 (+0800) Subject: 修复按键不能打断的bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=fe5fc3d57e1d40ecf5b78c08cd6da2b3921c8f59;p=mirrors%2FFD230.git 修复按键不能打断的bug --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 266e26398..c3ad03467 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -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) {