tencent cloud

Feedback

React Native

Last updated: 2024-02-07 11:13:18

    Feature Description

    Only locally stored group members can be searched for, such as the list of group members or group member profiles that have been pulled.
    Note:
    This feature cannot be used for audio-video groups (AVChatRoom) as the group members are not stored locally.

    Searching a Local Group

    Call the searchGroupMembers API (Details) to search for a local group member. You can set the search keyword keywordList and specify the search scope to set whether to search by the memberUserID, memberNickName, memberRemark, and memberNameCard fields of a group member.
    Depending on whether groupIDList of the V2TIMGroupMemberSearchParam (Details) in searchGroupMembers is empty (null/nil), there are two cases:
    If groupIDList is left empty, members in all the groups will be searched for and returned by groupID.
    If groupIDList is not left empty, members in the specified group will be searched for.
    Sample code:
    // Search for group members by the keyword and group ID
    const searchGroupMem = await groupManager.searchGroupMembers({
    groupIDList: ["The group ID can be specified"],
    keywordList: ["Keyword"],
    isSearchMemberNameCard: true,
    isSearchMemberNickName: true,
    isSearchMemberRemark: true,
    isSearchMemberUserID: true,
    });
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support