右键复制撤回功能
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user