fix: update_friends ffi registe & core asset update (#14)
* fix: update_friends ffi registe * chore: core assets update to v3.8.2-alpha.4
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
assets/version
Normal file
1
assets/version
Normal file
@@ -0,0 +1 @@
|
|||||||
|
v3.8.2-alpha.4
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openim/electron-client-sdk",
|
"name": "@openim/electron-client-sdk",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"description": "open im sdk for node",
|
"description": "open im sdk for node",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
|
|||||||
@@ -534,12 +534,6 @@ class OpenIMSDK
|
|||||||
'void',
|
'void',
|
||||||
['baseCallback *', 'str', 'str']
|
['baseCallback *', 'str', 'str']
|
||||||
);
|
);
|
||||||
this.libOpenIMSDK.get_users_info = this.lib.func(
|
|
||||||
'__stdcall',
|
|
||||||
'get_users_info',
|
|
||||||
'void',
|
|
||||||
['baseCallback *', 'str', 'str']
|
|
||||||
);
|
|
||||||
this.libOpenIMSDK.set_self_info = this.lib.func(
|
this.libOpenIMSDK.set_self_info = this.lib.func(
|
||||||
'__stdcall',
|
'__stdcall',
|
||||||
'set_self_info',
|
'set_self_info',
|
||||||
@@ -579,7 +573,7 @@ class OpenIMSDK
|
|||||||
// Friend functions
|
// Friend functions
|
||||||
this.libOpenIMSDK.update_friends = this.lib.func(
|
this.libOpenIMSDK.update_friends = this.lib.func(
|
||||||
'__stdcall',
|
'__stdcall',
|
||||||
'get_specified_friends_info',
|
'update_friends',
|
||||||
'void',
|
'void',
|
||||||
['baseCallback *', 'str', 'str']
|
['baseCallback *', 'str', 'str']
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ export function setupFriendModule(openIMSDK: OpenIMSDK) {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
updateFriends: (params: UpdateFriendsParams, opid = uuidV4()) =>
|
updateFriends: (params: UpdateFriendsParams, opid = uuidV4()) =>
|
||||||
new Promise<BaseResponse<FriendUserItem[]>>((resolve, reject) => {
|
new Promise<BaseResponse<void>>((resolve, reject) => {
|
||||||
openIMSDK.libOpenIMSDK.update_friends(
|
openIMSDK.libOpenIMSDK.update_friends(
|
||||||
openIMSDK.baseCallbackWrap<FriendUserItem[]>(resolve, reject),
|
openIMSDK.baseCallbackWrap<void>(resolve, reject),
|
||||||
opid,
|
opid,
|
||||||
JSON.stringify(params)
|
JSON.stringify(params)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user