From edef6dc339cc32e6b0a494f686bbeff4da0f89cc Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 21 Feb 2016 10:29:35 -0500 Subject: [PATCH] moved subscription flags when received group changes/create group to the case where the group is actually created (fixing bug causing group meta data change to unsubscribe friends) --- libretroshare/src/gxs/rsgenexchange.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index 769de1c58..b42cb1dc5 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -2788,7 +2788,6 @@ void RsGenExchange::processRecvdGroups() if(ret == VALIDATE_SUCCESS) { meta->mGroupStatus = GXS_SERV::GXS_GRP_STATUS_UNPROCESSED | GXS_SERV::GXS_GRP_STATUS_UNREAD; - meta->mSubscribeFlags = GXS_SERV::GROUP_SUBSCRIBE_NOT_SUBSCRIBED; computeHash(grp->grp, meta->mHash); @@ -2808,6 +2807,8 @@ void RsGenExchange::processRecvdGroups() if(meta->mCircleType == GXS_CIRCLE_TYPE_YOUREYESONLY) meta->mOriginator = grp->PeerId(); + meta->mSubscribeFlags = GXS_SERV::GROUP_SUBSCRIBE_NOT_SUBSCRIBED; + grps.insert(std::make_pair(grp, meta)); grpIds.push_back(grp->grpId); }