Merge pull request #13996 from ZehMatt/fix-13992

Fix #13992: Do not show empty groups in guest list
This commit is contained in:
ζeh Matt 2021-02-04 20:31:15 +02:00 committed by GitHub
commit 2a06043860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -855,7 +855,10 @@ private:
_groups.begin(), _groups.end(), [](const GuestGroup& a, const GuestGroup& b) { return a.NumGuests > b.NumGuests; });
// Remove up to MaxGroups
_groups.resize(MaxGroups);
if (_groups.size() > MaxGroups)
{
_groups.resize(MaxGroups);
}
}
/**