右键复制撤回功能

This commit is contained in:
2026-02-26 18:47:39 +08:00
parent fdb4a56197
commit 4780e15ffa
2 changed files with 146 additions and 13 deletions

View File

@@ -263,6 +263,28 @@ export function goEasyMessageRead(data) {
})
}
// 撤回消息
export function goEasyRecallMessage(message) {
if (!isGoEasyEnabled()) {
return Promise.reject(new Error('GoEasy 未启用'))
}
const goeasy = getPkGoEasy()
const im = goeasy.im
return new Promise((resolve, reject) => {
im.recallMessage({
messages: [message],
onSuccess: function () {
resolve(true)
},
onFailed: function (error) {
console.log('撤回失败, code:' + error.code + ' content:' + error.content)
reject(error)
}
})
})
}
// 删除会话
export function goEasyRemoveConversation(conversation) {
if (!isGoEasyEnabled()) {