Skip to content

[BUG] The group member count is incorrect. #1005

@gddd2302

Description

@gddd2302

OpenIM Server Version

3.8.2

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

Hello,
The server version is 3.8.2, and the Flutter version is also 3.8.2.
When I use the API to fetch the group member count, it returns 475, but the Flutter SDK returns 413.
There’s a significant discrepancy between the two values.
API:
api/group/get_group_member_list:
result:{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": {
"total": 475,
"members": [
{
"groupID": "183051",

SDK:
var list = await OpenIM.iMManager.groupManager.getGroupMemberList(
groupID: groupInfo.value.groupID,
count: 999,
);
memberList.assignAll(list);
print("groupID ${groupInfo.value.groupID} = ${memberList.length}");
result: groupID 183051 = 413

After repeated comparisons, I can confirm that the API result is correct, and the SDK is returning an incorrect number.

I would like to understand why this inconsistency occurs and how to resolve it.

thanks

Screenshots Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions