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,9 +117,12 @@ var WsApi = (function (_super) {
117 117
     WsApi.prototype.removeBlackList = function (userIds) {
118 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 127
     WsApi.prototype.listGroups = function () {
125 128
         return this.sendGetCmdMsg('listGroups');

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

@@ -14,7 +14,7 @@ export declare class WsApi extends WebSocketClient {
14 14
     getBlacklist(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
15 15
     addToBlackList(userIds: string[]): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
16 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 18
     listGroups(): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
19 19
     queryGroupInfo(roomId: string): Promise<import("ts-linker-sdk/dist/types/types").WebSocketResp>;
20 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,8 +76,11 @@ export class WsApi extends WebSocketClient {
76 76
 
77 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 85
   /** @end 会话管理 */
83 86