changed update of server update TS in subscribeStatusChange from 0 to time(NULL)

This commit is contained in:
csoler 2016-04-07 18:26:18 -04:00
parent 4ad3b11ef5
commit b90808dca8

View File

@ -968,10 +968,10 @@ void RsGxsNetService::subscribeStatusChanged(const RsGxsGroupId& grpId,bool subs
{
RsGxsServerMsgUpdateItem *item = new RsGxsServerMsgUpdateItem(mServType) ;
item->grpId = grpId ;
item->msgUpdateTS = 0 ;
item->msgUpdateTS = time(NULL) ;
}
else
it->second->msgUpdateTS = 0 ; // reset!
it->second->msgUpdateTS = time(NULL) ; // reset!
// We also update mGrpServerUpdateItem so as to trigger a new grp list exchange with friends (friends will send their known ClientTS which
// will be lower than our own grpUpdateTS, triggering our sending of the new subscribed grp list.