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

Commit 92a1c082 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

csis: Do not notify new member if group is complete

Bug: 261486986
Test: manual
Tag: #feature
Change-Id: I95335ea8a2272dcef48c5285f3476eee55257f08
parent b4707b67
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);