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:
blooming
2024-11-15 11:31:41 +08:00
committed by GitHub
parent 31642afc86
commit 7efcf76096
10 changed files with 5 additions and 10 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
assets/version Normal file
View File

@@ -0,0 +1 @@
v3.8.2-alpha.4

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,6 @@
{
"name": "@openim/electron-client-sdk",
"version": "1.1.3",
"version": "1.1.4",
"description": "open im sdk for node",
"source": "src/index.ts",
"main": "lib/index.js",

View File

@@ -534,12 +534,6 @@ class OpenIMSDK
'void',
['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(
'__stdcall',
'set_self_info',
@@ -579,7 +573,7 @@ class OpenIMSDK
// Friend functions
this.libOpenIMSDK.update_friends = this.lib.func(
'__stdcall',
'get_specified_friends_info',
'update_friends',
'void',
['baseCallback *', 'str', 'str']
);

View File

@@ -132,9 +132,9 @@ export function setupFriendModule(openIMSDK: OpenIMSDK) {
}),
updateFriends: (params: UpdateFriendsParams, opid = uuidV4()) =>
new Promise<BaseResponse<FriendUserItem[]>>((resolve, reject) => {
new Promise<BaseResponse<void>>((resolve, reject) => {
openIMSDK.libOpenIMSDK.update_friends(
openIMSDK.baseCallbackWrap<FriendUserItem[]>(resolve, reject),
openIMSDK.baseCallbackWrap<void>(resolve, reject),
opid,
JSON.stringify(params)
);