This commit is contained in:
cansnow
2026-01-11 15:48:41 +08:00
parent 2a0677014a
commit e39c06526d
6 changed files with 30 additions and 47 deletions
+6 -4
View File
@@ -185,7 +185,7 @@
this.onUserMessageEvent({type: 'cancelSelect'});
},
async doForwarMsg(userList, groupList, msgiem)
{b
{
//console.log(userList,groupList);
const _this = this;
for (var i = 0; i < userList.length; i++) {
@@ -219,7 +219,7 @@
uni.$u.toast(errMsg);
});
},
onUserMessageEvent(e, data) {
async onUserMessageEvent(e, data) {
const _this = this;
if (e.type == 'select') {
this.selectFlag = true;
@@ -248,8 +248,9 @@
if (e.type == 'deleteMsg' || e.type == 'deleteServerMsg') {
let method = IMSDK.IMMethods.DeleteMessageFromLocalStorage;
if(e.type == 'deleteServerMsg'){
method = IMSDK.IMMethods.DeleteMessage
method = IMSDK.IMMethods.RevokeMessage
}
console.log(method);
let deleteMsgs = [];
if (!data) {
deleteMsgs = [...this.selectItems];
@@ -258,10 +259,11 @@
}
for (let i = 0; i < deleteMsgs.length; i++) {
let element = deleteMsgs[i];
IMSDK.asyncApi(method, IMSDK.uuid(), {
let a = await IMSDK.asyncApi(method, IMSDK.uuid(), {
conversationID: _this.storeCurrentConversation.conversationID,
clientMsgID: element.clientMsgID
});
console.log(a);
}
this.selectItems = [];
this.$refs.chatingListRef.loadMessageList();