From 02645be07e12884763044cccb1dd716101fc1a64 Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 8 Nov 2024 20:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E7=9A=84=E6=9C=80=E5=90=8E=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=B8=A6=20action=20=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=EF=BC=8C=E7=95=8C=E9=9D=A2=E5=88=B7=E6=96=B0?= =?UTF-8?q?/=E9=87=8D=E5=90=AF=E5=90=8E=E4=BC=9A=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/state/msg.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/state/msg.class.js b/sdk/state/msg.class.js index 350a109..e49eb50 100644 --- a/sdk/state/msg.class.js +++ b/sdk/state/msg.class.js @@ -76,7 +76,7 @@ export default class Msg extends CloudData { // console.log('beforeAdd',data); // 如果此消息,创建时间在当前设备创建此会话之前,则无需执行 const conversation_time = currentConversation.update_time || currentConversation.client_create_time || 0 - if (data.create_time < conversation_time) { + if (data.create_time <= conversation_time) { return //console.log('消息创建时间早于会话最新时间,不执行',data.create_time,conversation_time); } // 调用扩展程序,使扩展程序可以在消息插入之前执行一些操作 -- GitLab