mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
83ecc4e8b4
commit
afa542b636
@ -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
|
// to see the grp id on the list of ownIds immediately after the group was created
|
||||||
{
|
{
|
||||||
RsStackMutex stack(mIdMtx);
|
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;
|
return createStatus;
|
||||||
|
Loading…
Reference in New Issue
Block a user