fix: 移除冗余的获取聊天消息列表调用
移除发送消息前后不必要的 WeworkLoopImpl.getChatMessageList 调用,避免重复获取聊天消息列表,提升操作效率。
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user