Fixed double (or more) add of own identity to p3IdService::mOwnIds after edit in the gui.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7794 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-12-25 21:41:32 +00:00
parent 83ecc4e8b4
commit afa542b636

View File

@ -2302,7 +2302,11 @@ RsGenExchange::ServiceCreate_Return p3IdService::service_CreateGroup(RsGxsGrpIte
// to see the grp id on the list of ownIds immediately after the group was created
{
RsStackMutex stack(mIdMtx);
mOwnIds.push_back(RsGxsId(item->meta.mGroupId));
RsGxsId gxsId(item->meta.mGroupId);
if (std::find(mOwnIds.begin(), mOwnIds.end(), gxsId) == mOwnIds.end())
{
mOwnIds.push_back(gxsId);
}
}
return createStatus;