Skip to content
v1
文档/Browser JS SDK/好友

@beeworks/imsdk


@beeworks/imsdk / friend / acceptFriendApply

acceptFriendApply()

acceptFriendApply(options): Promise<boolean>

接受好友申请

同意对方的好友添加请求。

Parameters

options

确认参数

friend

{ userId: string; domainId: string; }

申请人信息

friend.userId

string

friend.domainId

string

reason?

string

Returns

Promise<boolean>

Promise<boolean> - 操作是否成功

Example

typescript
await acceptFriendApply({
  friend: { userId: 'applicant_uid', domainId: 'domain_id' }
});