fixed bug causing forum posts to disappear/re-appear and to be set unread again. The bug was due to inconsistency between cleaning old messages and still inserting old messages again. Also augmented the storage period to 4 months (previously 1 month). Challenge: we should keep threads until the newest post in the thread is older than 4 months

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7554 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-09-22 18:50:45 +00:00
parent 9963cca4a6
commit 38c7e50e06
3 changed files with 64 additions and 21 deletions

View file

@ -39,7 +39,7 @@
#include "serialiser/rsnxsitems.h"
#include "rsgxsutil.h"
#define DEFAULT_MSG_STORE_PERIOD 60*60*24*30 // 1 month
#define DEFAULT_MSG_STORE_PERIOD 60*60*24*31*4 // 4 months
template<class GxsItem, typename Identity = std::string>
class GxsPendingItem
@ -307,6 +307,7 @@ public:
protected:
bool messagePublicationTest(const RsGxsMsgMetaData&) ;
/*!
* retrieves group data associated to a request token
* @param token token to be redeemed for grpitem retrieval