update 移除推断等待
This commit is contained in:
@@ -109,7 +109,7 @@ object WeworkLoopImpl {
|
|||||||
* @param needInfer 是否需要推断@me并等待回复
|
* @param needInfer 是否需要推断@me并等待回复
|
||||||
* @param timeout 在房间内等待回复的时长
|
* @param timeout 在房间内等待回复的时长
|
||||||
*/
|
*/
|
||||||
fun getChatMessageList(needInfer: Boolean = true, timeout: Long = 5000): Boolean {
|
fun getChatMessageList(needInfer: Boolean = false, timeout: Long = 5000): Boolean {
|
||||||
if (Constant.autoReply == 0) return true
|
if (Constant.autoReply == 0) return true
|
||||||
val roomType = WeworkRoomUtil.getRoomType()
|
val roomType = WeworkRoomUtil.getRoomType()
|
||||||
var titleList = WeworkRoomUtil.getRoomTitle()
|
var titleList = WeworkRoomUtil.getRoomTitle()
|
||||||
|
|||||||
@@ -1748,7 +1748,7 @@ object WeworkOperationImpl {
|
|||||||
log("发送消息: \n$content")
|
log("发送消息: \n$content")
|
||||||
AccessibilityUtil.performClick(sendButton)
|
AccessibilityUtil.performClick(sendButton)
|
||||||
sleep(Constant.POP_WINDOW_INTERVAL)
|
sleep(Constant.POP_WINDOW_INTERVAL)
|
||||||
WeworkLoopImpl.getChatMessageList()
|
WeworkLoopImpl.getChatMessageList(needInfer = false)
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
LogUtils.e("未找到发送按钮")
|
LogUtils.e("未找到发送按钮")
|
||||||
|
|||||||
Reference in New Issue
Block a user