fix dismiss group function

This commit is contained in:
AndrewZuo01 2023-12-20 12:17:36 +08:00
parent 62e96753c3
commit 5ebb813766

View File

@ -205,7 +205,7 @@ func (g *groupDatabase) DismissGroup(ctx context.Context, groupID string, delete
if err != nil {
return err
}
if err := g.groupMemberDB.Delete(ctx, groupID, nil); err != nil {
if err := g.groupMemberDB.Delete(ctx, groupID, userIDs); err != nil {
return err
}
c = c.DelJoinedGroupID(userIDs...).