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

@beeworks/imsdk


@beeworks/imsdk / friend / ignoreFriendApply

ignoreFriendApply()

ignoreFriendApply(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 ignoreFriendApply({
  friend: { userId: 'applicant_uid', domainId: 'domain_id' }
});