fix: 移除冗余的获取聊天消息列表调用

移除发送消息前后不必要的 WeworkLoopImpl.getChatMessageList 调用,避免重复获取聊天消息列表,提升操作效率。
This commit is contained in:
2026-03-25 19:01:20 +08:00
parent bcef4eded7
commit 11102bcc96

View File

@@ -2977,7 +2977,6 @@ object WeworkOperationImpl {
LogUtils.v("atFailed: $atFailed")
val content = if (atFailed) "@${atList?.joinToString()} $text" else text
val append = (reply == true) || (!atList.isNullOrEmpty() && !atFailed)
WeworkLoopImpl.getChatMessageList(needInfer = false, imageCheck = false, titleList = titleList)
if (AccessibilityUtil.findTextInput(getRoot(), content, append = append)) {
AccessibilityUtil.findOneByText(getRoot(), "发送", exact = true, timeout = 2000)
val sendButton = AccessibilityUtil.findAllByClazz(getRoot(), Views.Button)
@@ -2987,7 +2986,6 @@ object WeworkOperationImpl {
log("发送消息: \n$content")
AccessibilityUtil.performClick(sendButton)
sleep(Constant.POP_WINDOW_INTERVAL)
WeworkLoopImpl.getChatMessageList(needInfer = false, titleList = titleList)
goHome()
return true
} else {