heroiclabs / nakama-dart

Pure Dart Client for Nakama Server
https://heroiclabs.com/docs/nakama/client-libraries/dart
157 stars 48 forks source link

List User Groups doesn't return the groups users are member but just superadmin #89

Closed iammuho closed 4 months ago

iammuho commented 5 months ago

Describe the bug I;m trying to call the groups, users are member of (but not superadmin) and this function doesn't return any data.

 await client.listUserGroups(
                session: getIt<NakamaClient>().session,
                userId: getIt<NakamaClient>().session.userId,
              );

If I don't set the userID, it throws GrpcError(code: 3, message: User ID must be set.) flutter: GrpcError(code: 3, message: User ID must be set.)

If the user is the superadmin, all works.

How can I solve that issue ? I

obrunsmann commented 4 months ago

@iammuho fixed from 1.0.6. Please check with the version once it's released