diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-07-25 13:05:47 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-07-25 13:10:23 +0200 |
commit | ca70244339291b2a06aab55e865339c534433372 (patch) | |
tree | 39debc39f1eda0d4caea6bca81178e94352a5e5b | |
parent | 3330a4adb8a73cd51a774212c92ebec6c482b665 (diff) |
#1318 Pagination in the Group Interface (small fix)
-rw-r--r-- | indra/newview/llgroupmgr.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llgroupmgr.cpp b/indra/newview/llgroupmgr.cpp index 090ed7b0e2..ec2002d8c5 100644 --- a/indra/newview/llgroupmgr.cpp +++ b/indra/newview/llgroupmgr.cpp @@ -2332,14 +2332,16 @@ void LLGroupMgr::processCapGroupMembersResponse(const LLSD& response, U32 page_s group_datap->mMembers[member_id] = data; } - group_datap->mMemberCount = (S32)group_datap->mMembers.size(); + U32 member_count = (U32)group_datap->mMembers.size(); + + group_datap->mMemberCount = (S32)member_count; group_datap->mMemberDataComplete = true; group_datap->mMemberRequestID.setNull(); group_datap->mMemberVersion.generate(); LL_INFOS("GrpMgr") << "members before: " << members_before << ", members loaded: " << members_loaded - << ", members now: " << group_datap->mMemberCount << LL_ENDL; + << ", members now: " << member_count << LL_ENDL; // Technically, we have this data, but to prevent completely overhauling // this entire system (it would be nice, but I don't have the time), @@ -2353,9 +2355,9 @@ void LLGroupMgr::processCapGroupMembersResponse(const LLSD& response, U32 page_s sendGroupTitlesRequest(group_id); } - if (page_size && members_loaded >= page_size) + if (page_size && members_loaded >= page_size && member_count > members_before) { - sendCapGroupMembersRequest(group_id, page_size, (U32)group_datap->mMemberCount, sort_column); + sendCapGroupMembersRequest(group_id, page_size, member_count, sort_column); } // Make the role-member data request |