mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed mistake that prevented GXS posts to propagate
This commit is contained in:
parent
e19711785b
commit
8568199497
@ -239,11 +239,13 @@ void RsGenExchange::tick()
|
|||||||
bool RsGenExchange::messagePublicationTest(const RsGxsMsgMetaData& meta)
|
bool RsGenExchange::messagePublicationTest(const RsGxsMsgMetaData& meta)
|
||||||
{
|
{
|
||||||
time_t st = MESSAGE_STORE_PERIOD;
|
time_t st = MESSAGE_STORE_PERIOD;
|
||||||
if(mNetService) st = mNetService->getKeepAge(meta.mGroupId, st);
|
|
||||||
|
if(mNetService)
|
||||||
|
st = mNetService->getKeepAge(meta.mGroupId, st);
|
||||||
|
|
||||||
time_t storageTimeLimit = meta.mPublishTs + st;
|
time_t storageTimeLimit = meta.mPublishTs + st;
|
||||||
|
|
||||||
return meta.mMsgStatus & GXS_SERV::GXS_MSG_STATUS_KEEP ||
|
return meta.mMsgStatus & GXS_SERV::GXS_MSG_STATUS_KEEP || st == 0 || storageTimeLimit >= time(NULL);
|
||||||
storageTimeLimit == 0 || storageTimeLimit >= time(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RsGenExchange::acknowledgeTokenMsg(const uint32_t& token,
|
bool RsGenExchange::acknowledgeTokenMsg(const uint32_t& token,
|
||||||
|
Loading…
Reference in New Issue
Block a user