mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 13:24:15 -05:00
extended auto-subscribe to circles with admin flag
This commit is contained in:
parent
d114b830a7
commit
9a328f67ce
@ -1246,9 +1246,7 @@ bool p3GxsCircles::locked_checkCircleCacheForAutoSubscribe(RsGxsCircleCache &cac
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if we appear in the group - then autosubscribe, and mark as processed */
|
/* if we appear in the group - then autosubscribe, and mark as processed. This also applies if we're the group admin */
|
||||||
|
|
||||||
// const RsPgpId& ownPgpId = mPgpUtils->getPGPOwnId();
|
|
||||||
|
|
||||||
std::list<RsGxsId> myOwnIds;
|
std::list<RsGxsId> myOwnIds;
|
||||||
|
|
||||||
@ -1275,11 +1273,12 @@ bool p3GxsCircles::locked_checkCircleCacheForAutoSubscribe(RsGxsCircleCache &cac
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_CIRCLES
|
bool am_I_admin( cache.mGroupSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_ADMIN) ;
|
||||||
std::cerr << " own ID in circle: " << in_admin_list << ", own subscribe request: " << member_request << std::endl;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if(in_admin_list || member_request)
|
#ifdef DEBUG_CIRCLES
|
||||||
|
std::cerr << " own ID in circle: " << in_admin_list << ", own subscribe request: " << member_request << ", am I admin?: " << am_I_admin << std::endl;
|
||||||
|
#endif
|
||||||
|
if(in_admin_list || member_request || am_I_admin)
|
||||||
{
|
{
|
||||||
uint32_t token, token2;
|
uint32_t token, token2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user