修复撤回消息的用户名展示
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user