@aochuang/client-sdk 1.0.327 → 1.0.329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,6 +75,9 @@ export function formatShortMessage (msgType, msgContent) {
|
|
|
75
75
|
case MESSAGE_TYPE.TEXT:
|
|
76
76
|
shortMessage = msgContent
|
|
77
77
|
break
|
|
78
|
+
case MESSAGE_TYPE.TEXT_W:
|
|
79
|
+
shortMessage = msgContent
|
|
80
|
+
break
|
|
78
81
|
case MESSAGE_TYPE.TEXT_WITH_AT:
|
|
79
82
|
let {atId, content, text} = toJson(msgContent) || {}
|
|
80
83
|
shortMessage = text
|
package/package.json
CHANGED
|
@@ -205,14 +205,16 @@ export default class ClientChatMessage {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
sendMessage (data) {
|
|
208
|
-
return this.clientChat.socket.
|
|
208
|
+
return this.clientChat.socket.sendMessage(Object.assign({
|
|
209
209
|
content: null,
|
|
210
210
|
msgType: null,
|
|
211
211
|
msgSubType: 0,
|
|
212
212
|
qwAccountId: null
|
|
213
213
|
// contactId: null,
|
|
214
214
|
// roomId: null
|
|
215
|
-
}, data
|
|
215
|
+
}, data, {
|
|
216
|
+
cmdType: 'CmdQwSendMessage'
|
|
217
|
+
})).then(({ data }) => {
|
|
216
218
|
if (data.sendStatus === 0) {
|
|
217
219
|
// 发送成功
|
|
218
220
|
} else if (data.sendStatus === 2) {
|