@beeworks/imsdk / friend / getFriendApplyList
getFriendApplyList()
getFriendApplyList():
Promise<IFriendApplyRes[] |null>
查询好友申请列表
获取收到的好友添加申请。
Returns
Promise<IFriendApplyRes[] | null>
Promise<IFriendApplyRes[] | null> - 申请列表数组
Example
typescript
const applies = await getFriendApplyList();
if (applies && applies.length > 0) {
console.log('New friend requests:', applies.length);
}