|
@@ -920,20 +920,10 @@ int ProtoParserPrivate::update(PullGroupMemberResult &result)
|
|
|
// TODO:
|
|
|
#else
|
|
|
auto &items = _groupMembers[result.target()];
|
|
|
-
|
|
|
- //_groupMembers.clear();
|
|
|
+ items.clear();
|
|
|
for (int i = 0; i < n; i++)
|
|
|
{
|
|
|
auto entry = result.member(i);
|
|
|
- for (auto it = items.begin(); it != items.end(); it++)
|
|
|
- {
|
|
|
- if (it->member_id() == entry.member_id())
|
|
|
- {
|
|
|
- items.erase(it);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
items.emplace_back(entry);
|
|
|
}
|
|
|
items.sort([](const auto &s1, const auto &s2) {
|