mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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;
|
||||
}
|
||||
|
||||
/* if we appear in the group - then autosubscribe, and mark as processed */
|
||||
|
||||
// const RsPgpId& ownPgpId = mPgpUtils->getPGPOwnId();
|
||||
/* if we appear in the group - then autosubscribe, and mark as processed. This also applies if we're the group admin */
|
||||
|
||||
std::list<RsGxsId> myOwnIds;
|
||||
|
||||
@ -1275,11 +1273,12 @@ bool p3GxsCircles::locked_checkCircleCacheForAutoSubscribe(RsGxsCircleCache &cac
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG_CIRCLES
|
||||
std::cerr << " own ID in circle: " << in_admin_list << ", own subscribe request: " << member_request << std::endl;
|
||||
#endif
|
||||
bool am_I_admin( cache.mGroupSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_ADMIN) ;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user