@aochuang/client-sdk 1.0.328 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.328",
3
+ "version": "1.0.329",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -205,14 +205,16 @@ export default class ClientChatMessage {
205
205
  }
206
206
 
207
207
  sendMessage (data) {
208
- return this.clientChat.socket.sendChatMessage(Object.assign({
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)).then(({ data }) => {
215
+ }, data, {
216
+ cmdType: 'CmdQwSendMessage'
217
+ })).then(({ data }) => {
216
218
  if (data.sendStatus === 0) {
217
219
  // 发送成功
218
220
  } else if (data.sendStatus === 2) {