From 3dba7f2cfce94263dd1004c046daf127594b27da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 14 Jul 2025 13:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E5=9B=9E=E6=B6=88=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E6=98=BE=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- pages/conversation/chating/components/MessageItem/index.vue | 3 +-- util/imCommon.js | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/App.vue b/App.vue index e4871be..f966503 100644 --- a/App.vue +++ b/App.vue @@ -377,7 +377,7 @@ export default { data.notificationElem = { detail: JSON.stringify({ revokerID: data.revokerID, - revokerName: data.revokerNickname || data.revokerID + revokerNickName: data.revokerNickname || data.revokerID }) }; } diff --git a/pages/conversation/chating/components/MessageItem/index.vue b/pages/conversation/chating/components/MessageItem/index.vue index bcbe5bb..90a3abc 100644 --- a/pages/conversation/chating/components/MessageItem/index.vue +++ b/pages/conversation/chating/components/MessageItem/index.vue @@ -307,9 +307,8 @@ export default { const result = await revokeMessage({ conversationID: this.storeCurrentConversation.conversationID, clientMsgID: this.source.clientMsgID, - // 当前用户的id和name - revokerName: this.storeSelfInfo.nickname, revokerID: this.storeSelfInfo.userID, + revokerNickname: this.storeSelfInfo.nickname }); uni.hideLoading(); diff --git a/util/imCommon.js b/util/imCommon.js index b89d91b..a8744ff 100644 --- a/util/imCommon.js +++ b/util/imCommon.js @@ -305,8 +305,9 @@ export const tipMessaggeFormat = (msg, currentUserID) => { case MessageType.RevokeMessage: try { const revokeDetails = JSON.parse(msg.notificationElem.detail); + console.log(revokeDetails, '撤回消息') const revokerID = revokeDetails.revokerID; - const revokerName = revokeDetails.revokerName || "未知用户"; + const revokerName = revokeDetails.revokerNickname || "未知用户"; if (revokerID === currentUserID) { return "你撤回了一条消息";