mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-30 10:39:47 +08:00
group
This commit is contained in:
parent
666e1f9273
commit
bb73b7e675
@ -225,8 +225,9 @@ func (g *groupDatabase) PageGroupMember(ctx context.Context, groupIDs []string,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, nil, err
|
return 0, nil, err
|
||||||
}
|
}
|
||||||
|
groupIDs = utils.Paginate(groupIDs, int(pageNumber), int(showNumber))
|
||||||
for _, groupID := range groupIDs {
|
for _, groupID := range groupIDs {
|
||||||
groupMembers, err := g.cache.GetGroupMembersPage(ctx, groupID, nil, pageNumber, showNumber)
|
groupMembers, err := g.cache.GetGroupMembersInfo(ctx, groupID, []string{userID})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, nil, err
|
return 0, nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user