mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-20 02:23:30 -04:00
@@ -726,13 +726,12 @@ void DmAuthManager::UserSwitchEventCallback (void)
|
||||
jsonObj[FIELD_GROUP_TYPE] = GROUP_TYPE_PEER_TO_PEER_GROUP;
|
||||
std::string queryParams = jsonObj.dump();
|
||||
std::vector<GroupInfo> groupList;
|
||||
int32_t ret = hiChainConnector_->GetGroupInfo(queryParams, groupList);
|
||||
if (ret != DM_OK) {
|
||||
if (!hiChainConnector_->GetGroupInfo(queryParams, groupList)) {
|
||||
LOGE("failed to get device join groups");
|
||||
return;
|
||||
}
|
||||
for (auto iter = groupList.begin(); iter != groupList.end(); iter++) {
|
||||
ret = hiChainConnector_->DeleteGroup(iter->groupId);
|
||||
int32_t ret = hiChainConnector_->DeleteGroup(iter->groupId);
|
||||
if (ret != DM_OK) {
|
||||
LOGE("fail to delete group");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user