Browse Source

更新组信息

dong_dl 1 year ago
parent
commit
d2228f6f2e
1 changed files with 1 additions and 11 deletions
  1. 1 11
      src/proto/ProtoParserPrivate.cpp

+ 1 - 11
src/proto/ProtoParserPrivate.cpp

@@ -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) {