mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05:00
Request pull from peers when GXS message is created
This commit is contained in:
parent
b42323013e
commit
6295e91304
@ -2286,8 +2286,9 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
|
||||
|
||||
void RsGenExchange::publishMsgs()
|
||||
{
|
||||
bool atLeastOneMessageCreatedSuccessfully = false;
|
||||
|
||||
RS_STACK_MUTEX(mGenMtx) ;
|
||||
RS_STACK_MUTEX(mGenMtx);
|
||||
|
||||
rstime_t now = time(NULL);
|
||||
|
||||
@ -2464,6 +2465,8 @@ void RsGenExchange::publishMsgs()
|
||||
// add to published to allow acknowledgement
|
||||
mMsgNotify.insert(std::make_pair(mit->first, std::make_pair(grpId, msgId)));
|
||||
mDataAccess->updatePublicRequestStatus(mit->first, RsTokenService::COMPLETE);
|
||||
|
||||
atLeastOneMessageCreatedSuccessfully = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2497,6 +2500,8 @@ void RsGenExchange::publishMsgs()
|
||||
|
||||
mNotifications.push_back(ch);
|
||||
}
|
||||
|
||||
if(atLeastOneMessageCreatedSuccessfully) mNetService->requestPull();
|
||||
}
|
||||
|
||||
RsGenExchange::ServiceCreate_Return RsGenExchange::service_CreateGroup(RsGxsGrpItem* /* grpItem */,
|
||||
|
Loading…
Reference in New Issue
Block a user