mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 01:25:39 -05:00
Index only public channels
This commit is contained in:
parent
0f63283f96
commit
5a41b3cb37
@ -201,8 +201,22 @@ bool RsGxsIntegrityCheck::check()
|
|||||||
{
|
{
|
||||||
subscribed_groups.insert(git->first);
|
subscribed_groups.insert(git->first);
|
||||||
|
|
||||||
|
if(!grp->metaData->mAuthorId.isNull())
|
||||||
|
{
|
||||||
|
#ifdef DEBUG_GXSUTIL
|
||||||
|
GXSUTIL_DEBUG() << "TimeStamping group authors' key ID " << grp->metaData->mAuthorId << " in group ID " << grp->grpId << std::endl;
|
||||||
|
#endif
|
||||||
|
if( rsReputations && rsReputations->overallReputationLevel(grp->metaData->mAuthorId ) > RsReputations::REPUTATION_LOCALLY_NEGATIVE )
|
||||||
|
used_gxs_ids.insert(std::make_pair(grp->metaData->mAuthorId, RsIdentityUsage(mGenExchangeClient->serviceType(), RsIdentityUsage::GROUP_AUTHOR_KEEP_ALIVE,grp->grpId)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else msgIds.erase(msgIds.find(grp->grpId));
|
||||||
|
|
||||||
#ifdef RS_DEEP_SEARCH
|
#ifdef RS_DEEP_SEARCH
|
||||||
if(isGxsChannels)
|
if( isGxsChannels
|
||||||
|
&& grp->metaData->mCircleType == GXS_CIRCLE_TYPE_PUBLIC
|
||||||
|
&& grp->metaData->mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_SUBSCRIBED )
|
||||||
{
|
{
|
||||||
RsGxsGrpMetaData meta;
|
RsGxsGrpMetaData meta;
|
||||||
meta.deserialise(grp->meta.bin_data, grp->meta.bin_len);
|
meta.deserialise(grp->meta.bin_data, grp->meta.bin_len);
|
||||||
@ -234,18 +248,6 @@ bool RsGxsIntegrityCheck::check()
|
|||||||
delete rIt;
|
delete rIt;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(!grp->metaData->mAuthorId.isNull())
|
|
||||||
{
|
|
||||||
#ifdef DEBUG_GXSUTIL
|
|
||||||
GXSUTIL_DEBUG() << "TimeStamping group authors' key ID " << grp->metaData->mAuthorId << " in group ID " << grp->grpId << std::endl;
|
|
||||||
#endif
|
|
||||||
if( rsReputations && rsReputations->overallReputationLevel(grp->metaData->mAuthorId ) > RsReputations::REPUTATION_LOCALLY_NEGATIVE )
|
|
||||||
used_gxs_ids.insert(std::make_pair(grp->metaData->mAuthorId, RsIdentityUsage(mGenExchangeClient->serviceType(), RsIdentityUsage::GROUP_AUTHOR_KEEP_ALIVE,grp->grpId)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else msgIds.erase(msgIds.find(grp->grpId));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -49,10 +49,9 @@ extern RsGxsCircles *rsGxsCircles;
|
|||||||
|
|
||||||
typedef RsPgpId RsPgpId;
|
typedef RsPgpId RsPgpId;
|
||||||
|
|
||||||
// The meaning of the different circle types is:
|
/// The meaning of the different circle types is:
|
||||||
//
|
/// TODO: convert to enum
|
||||||
//
|
static const uint32_t GXS_CIRCLE_TYPE_UNKNOWN = 0x0000 ; /// Used to detect uninizialized values.
|
||||||
static const uint32_t GXS_CIRCLE_TYPE_UNKNOWN = 0x0000 ; // not known. Is treated as public.
|
|
||||||
static const uint32_t GXS_CIRCLE_TYPE_PUBLIC = 0x0001 ; // not restricted to a circle
|
static const uint32_t GXS_CIRCLE_TYPE_PUBLIC = 0x0001 ; // not restricted to a circle
|
||||||
static const uint32_t GXS_CIRCLE_TYPE_EXTERNAL = 0x0002 ; // restricted to an external circle, made of RsGxsId
|
static const uint32_t GXS_CIRCLE_TYPE_EXTERNAL = 0x0002 ; // restricted to an external circle, made of RsGxsId
|
||||||
static const uint32_t GXS_CIRCLE_TYPE_YOUR_FRIENDS_ONLY = 0x0003 ; // restricted to a subset of friend nodes of a given RS node given by a RsPgpId list
|
static const uint32_t GXS_CIRCLE_TYPE_YOUR_FRIENDS_ONLY = 0x0003 ; // restricted to a subset of friend nodes of a given RS node given by a RsPgpId list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user