Browse Source

chore:update

wx-chevalier 5 years ago
parent
commit
72b5c47ca3

+ 6
- 3
packages/cts-api/dist/cjs/api/WsApi.js View File

117
     WsApi.prototype.removeBlackList = function (userIds) {
117
     WsApi.prototype.removeBlackList = function (userIds) {
118
         return this.sendPostCmdMsg('removeBlackList', userIds);
118
         return this.sendPostCmdMsg('removeBlackList', userIds);
119
     };
119
     };
120
-    WsApi.prototype.deleteConversation = function (contactId, delete_message) {
121
-        if (delete_message === void 0) { delete_message = false; }
122
-        return this.request('/v1/delete/conversation', { contact: contactId, delete_message: delete_message });
120
+    WsApi.prototype.deleteConversation = function (contactId, deleteMessage) {
121
+        if (deleteMessage === void 0) { deleteMessage = false; }
122
+        return this.request('/v1/delete/conversation', {
123
+            contact: contactId,
124
+            delete_message: deleteMessage
125
+        });
123
     };
126
     };
124
     WsApi.prototype.listGroups = function () {
127
     WsApi.prototype.listGroups = function () {
125
         return this.sendGetCmdMsg('listGroups');
128
         return this.sendGetCmdMsg('listGroups');

+ 1
- 1
packages/cts-api/dist/types/api/WsApi.d.ts View File

14
     getBlacklist(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
14
     getBlacklist(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
15
     addToBlackList(userIds: string[]): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
15
     addToBlackList(userIds: string[]): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
16
     removeBlackList(userIds: string[]): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
16
     removeBlackList(userIds: string[]): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
17
-    deleteConversation(contactId: string, delete_message?: boolean): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
17
+    deleteConversation(contactId: string, deleteMessage?: boolean): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
18
     listGroups(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
18
     listGroups(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
19
     queryGroupInfo(roomId: string): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
19
     queryGroupInfo(roomId: string): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
20
     queryRoomMember(roomId: string): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
20
     queryRoomMember(roomId: string): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;

+ 5
- 2
packages/cts-api/src/api/WsApi.ts View File

76
 
76
 
77
   /** @start 会话管理 */
77
   /** @start 会话管理 */
78
   // 删除会话
78
   // 删除会话
79
-  deleteConversation(contactId: string, delete_message: boolean = false) {
80
-    return this.request('/v1/delete/conversation', { contact: contactId, delete_message });
79
+  deleteConversation(contactId: string, deleteMessage: boolean = false) {
80
+    return this.request('/v1/delete/conversation', {
81
+      contact: contactId,
82
+      delete_message: deleteMessage
83
+    });
81
   }
84
   }
82
   /** @end 会话管理 */
85
   /** @end 会话管理 */
83
 
86