mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 10:58:43 -04:00
merged with upstream/master
This commit is contained in:
commit
ae37787853
11 changed files with 201 additions and 83 deletions
|
@ -90,7 +90,7 @@ bool RsGxsMessageCleanUp::clean()
|
|||
RsGxsMsgMetaData* meta = *vit;
|
||||
|
||||
// check if expired
|
||||
bool remove = (meta->mPublishTs + store_period) < now;
|
||||
bool remove = store_period > 0 && (meta->mPublishTs + store_period) < now;
|
||||
|
||||
// check client does not want the message kept regardless of age
|
||||
remove &= !(meta->mMsgStatus & GXS_SERV::GXS_MSG_STATUS_KEEP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue