Browse SDKs · WASM
SDKsWASM

Accept a friend application

Accept a friend application from a selected user.

Copy
await openimsdk.acceptFriendApplication({ toUserID: applicantUserID, handleMsg: '' });

A successful Promise means that the processing request has completed. Application events synchronize the application state, while OnFriendAdded synchronizes the new friendship.