修复撤回消息的用户名展示

This commit is contained in:
砂糖
2025-07-14 13:01:45 +08:00
parent 47bccb29d3
commit 6bebaf41de
2 changed files with 8 additions and 5 deletions

View File

@@ -304,10 +304,13 @@ export default {
});
// 撤回消息
const result = await revokeMessage(
this.storeCurrentConversation.conversationID,
this.source.clientMsgID
);
const result = await revokeMessage({
conversationID: this.storeCurrentConversation.conversationID,
clientMsgID: this.source.clientMsgID,
// 当前用户的id和name
revokerName: this.storeSelfInfo.nickname,
revokerID: this.storeSelfInfo.userID,
});
uni.hideLoading();

View File

@@ -6,7 +6,7 @@ import IMSDK, { MessageStatus } from "openim-uniapp-polyfill";
* @param {string} clientMsgID - 消息客户端ID
* @returns {Promise} 撤回结果
*/
export const revokeMessage = async (conversationID, clientMsgID) => {
export const revokeMessage = async ({conversationID, clientMsgID, revokerName, revokerId}) => {
try {
const result = await IMSDK.asyncApi(
IMSDK.IMMethods.RevokeMessage,