图片消息发送

This commit is contained in:
2022-02-07 17:22:09 +08:00
parent d27e8c4f58
commit 9b6cb99541
9 changed files with 221 additions and 162 deletions

View File

@@ -107,14 +107,13 @@ const sentVoice = (conversationType, targetId, voiceUrl, time, callback) => {
})
}
const sentImage = (conversationType, targetId, imageUrl, time, callback) => {
const sentImage = (conversationType, targetId, imageUrl, callback) => {
const msg = {
conversationType: conversationType,
targetId: String(targetId),
content: {
objectName: 'RC:ImgMsg',
local: 'file:///' + plus.io.convertLocalFileSystemURL(imageUrl),
duration: time
local: 'file:///' + plus.io.convertLocalFileSystemURL(imageUrl)
}
}
RongIMLib.sendMediaMessage(msg, {