修复撤回消息的用户名展示
This commit is contained in:
@@ -304,10 +304,13 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 撤回消息
|
// 撤回消息
|
||||||
const result = await revokeMessage(
|
const result = await revokeMessage({
|
||||||
this.storeCurrentConversation.conversationID,
|
conversationID: this.storeCurrentConversation.conversationID,
|
||||||
this.source.clientMsgID
|
clientMsgID: this.source.clientMsgID,
|
||||||
);
|
// 当前用户的id和name
|
||||||
|
revokerName: this.storeSelfInfo.nickname,
|
||||||
|
revokerID: this.storeSelfInfo.userID,
|
||||||
|
});
|
||||||
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import IMSDK, { MessageStatus } from "openim-uniapp-polyfill";
|
|||||||
* @param {string} clientMsgID - 消息客户端ID
|
* @param {string} clientMsgID - 消息客户端ID
|
||||||
* @returns {Promise} 撤回结果
|
* @returns {Promise} 撤回结果
|
||||||
*/
|
*/
|
||||||
export const revokeMessage = async (conversationID, clientMsgID) => {
|
export const revokeMessage = async ({conversationID, clientMsgID, revokerName, revokerId}) => {
|
||||||
try {
|
try {
|
||||||
const result = await IMSDK.asyncApi(
|
const result = await IMSDK.asyncApi(
|
||||||
IMSDK.IMMethods.RevokeMessage,
|
IMSDK.IMMethods.RevokeMessage,
|
||||||
|
|||||||
Reference in New Issue
Block a user