From a097854394aec85f6b5fc5f63d996f9d2870ddde Mon Sep 17 00:00:00 2001 From: tanjianbin <632190820@qq.com> Date: Tue, 24 Mar 2026 19:20:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=8D=95=E8=81=8A=E8=81=94=E7=B3=BB=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=80=BB=E8=BE=91=E4=BB=A5=E7=AE=80=E5=8C=96=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=A4=84=E7=90=86=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于单聊联系人信息在当前消息处理流程中未使用,移除相关代码以减少不必要的网络请求和逻辑复杂度,提高代码可维护性。 --- .../org/yameida/worktool/service/WeworkLoopImpl.kt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/src/main/java/org/yameida/worktool/service/WeworkLoopImpl.kt b/app/src/main/java/org/yameida/worktool/service/WeworkLoopImpl.kt index 3b6a4dd..37a1860 100644 --- a/app/src/main/java/org/yameida/worktool/service/WeworkLoopImpl.kt +++ b/app/src/main/java/org/yameida/worktool/service/WeworkLoopImpl.kt @@ -280,16 +280,6 @@ object WeworkLoopImpl { } messageList.removeIf { it.textType == WeworkMessageBean.TEXT_TYPE_IMAGE } } - // 获取单聊联系人详细信息 - var contactInfo: WeworkMessageBean.Friend? = null - if (roomType == WeworkMessageBean.ROOM_TYPE_EXTERNAL_CONTACT - || roomType == WeworkMessageBean.ROOM_TYPE_INTERNAL_CONTACT) { - val friendName = titleList.firstOrNull() ?: "" - if (friendName.isNotEmpty()) { - contactInfo = getChatContactInfo(friendName) - } - } - val messageBean = WeworkMessageBean( null, null, WeworkMessageBean.TYPE_RECEIVE_MESSAGE_LIST, @@ -298,7 +288,6 @@ object WeworkLoopImpl { messageList, null ) - messageBean.contact = contactInfo WeworkController.weworkService.webSocketManager.send(messageBean) //推测是否回复并在房间等待指令 if (needInfer) {