easemob / react-native-chat-sdk

MIT License
2 stars 10 forks source link

fetchMemberListFromServer function not returning all the joined member IDs #25

Closed lasitha-ideabits closed 1 year ago

lasitha-ideabits commented 1 year ago

Description

This issue only occurs on Android, i am not getting all the member IDs of the Group when i fetch it using an Android device. i can see the ids under the Group on Agora console

Version

1.1.1

Output of npx react-native info

info Fetching system and libraries information... System: OS: macOS 12.6 CPU: (8) x64 Apple M1 Memory: 39.45 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.17.4 - /usr/local/bin/node Yarn: Not Found npm: 8.1.0 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Android NDK: 21.4.7075529 IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7935034 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.67.5 => 0.67.5 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Snack, code example, screenshot, or link to a repository

export const fetchGroupMembers = async (groupId, onSuccess, onError) => {
  try {
    chatClient.groupManager.fetchMemberListFromServer(groupId, 200, null)
      .then(members => {
        onSuccess(members);
      })
      .catch(reason => {
        onError(reason);
      });
  } catch (error) {
    onError(error);
  }
};

Platform

SimulatorOrDevice

iOSVersion

ycj3 commented 1 year ago

"not returning all the joined member IDs" meant not include group ower/creater? Currently, the API fetchMemberListFromServer return ower and members(not include ower) are separated.

lasitha-ideabits commented 1 year ago

yes, members IDs not owner ID, owner id we can get it from owner property

alexgreenbar commented 1 year ago

@lasitha-ideabits , this works on iOS?

lasitha-ideabits commented 1 year ago

yes i can get all member ID on iOS device

lasitha-ideabits commented 1 year ago

@CarlsonYuan what's the status of this, Are you guys working on it?

AsteriskZuo commented 1 year ago

758c1acbefe32da5c3824e24a8f5c5d9eaf6e240 fix this bug. try 1.1.2-beta.0 version.

lasitha-ideabits commented 1 year ago

Thanks, send me beta version link

AsteriskZuo commented 1 year ago

https://www.npmjs.com/package/react-native-chat-sdk

lasitha-ideabits commented 1 year ago

Thanks @AsteriskZuo

AsteriskZuo commented 1 year ago

Sorry, I misunderstood the question. However, I did verify this problem today and found no problems with the android platform. Is it possible to use our testing tool to verify your question?

https://github.com/easemob/react-native-chat-sdk/blob/758c1acbefe32da5c3824e24a8f5c5d9eaf6e240/example/src/demo2/Test/QuickTestGroupData.tsx

fetchMemberListFromServer