Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to query groups created by user? #1235

Closed
weishirongzhen opened this issue Jun 1, 2023 · 1 comment
Closed

how to query groups created by user? #1235

weishirongzhen opened this issue Jun 1, 2023 · 1 comment
Labels
question Further information is requested

Comments

@weishirongzhen
Copy link

weishirongzhen commented Jun 1, 2023

scenario:
User A create some group by call

client.groupService.createGroup("group name 1")
client.groupService.createGroup("group name 2")
client.groupService.createGroup("group name 2")
these group haven't send or receive any message

User A login on a new device, need 's to pull groups
User A how to know what group created by himself?

@JamesChenX
Copy link
Member

Dart code reference:

final groupInfos = await this.queryJoinedGroupInfos();
final myUserId = Int64(1);
final myOwnedGroups = groupInfos.data?.groups.where((group) => group.ownerId == myUserId);

But I will add some filters for queryJoinedGroupInfos later so that we can filter the result on the server side.

@JamesChenX JamesChenX added the question Further information is requested label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants