Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5670219 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Gerrit Code Review
Browse files

Merge "csis: Do not notify new member if group is complete"

parents 0ab051ec 92a1c082
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1203,6 +1203,12 @@ class CsisClientImpl : public CsisClient {
      return;
    }

    if (csis_group->GetDesiredSize() > 0 &&
        (csis_group->GetDesiredSize() == csis_group->GetCurrentSize())) {
      LOG_WARN("Group is already complete");
      return;
    }

    auto discovered_group_rsi = std::find_if(
        all_rsi.cbegin(), all_rsi.cend(), [&csis_group](const auto& rsi) {
          return csis_group->IsRsiMatching(rsi);