mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
fixed stupid mistake in previous commit (GXS transaction timestamp)
This commit is contained in:
parent
7b3fd53bb9
commit
678afe7a0f
@ -207,8 +207,8 @@
|
|||||||
NXS_NET_DEBUG_4 vetting
|
NXS_NET_DEBUG_4 vetting
|
||||||
NXS_NET_DEBUG_5 summary of transactions (useful to just know what comes in/out)
|
NXS_NET_DEBUG_5 summary of transactions (useful to just know what comes in/out)
|
||||||
***/
|
***/
|
||||||
#define NXS_NET_DEBUG_0 1
|
//#define NXS_NET_DEBUG_0 1
|
||||||
#define NXS_NET_DEBUG_1 1
|
//#define NXS_NET_DEBUG_1 1
|
||||||
//#define NXS_NET_DEBUG_2 1
|
//#define NXS_NET_DEBUG_2 1
|
||||||
//#define NXS_NET_DEBUG_3 1
|
//#define NXS_NET_DEBUG_3 1
|
||||||
//#define NXS_NET_DEBUG_4 1
|
//#define NXS_NET_DEBUG_4 1
|
||||||
@ -3740,17 +3740,18 @@ void RsGxsNetService::locked_pushMsgRespFromList(std::list<RsNxsItem*>& itemL, c
|
|||||||
RsNxsTransac* trItem = new RsNxsTransac(mServType);
|
RsNxsTransac* trItem = new RsNxsTransac(mServType);
|
||||||
trItem->transactFlag = RsNxsTransac::FLAG_BEGIN_P1 | RsNxsTransac::FLAG_TYPE_MSG_LIST_RESP;
|
trItem->transactFlag = RsNxsTransac::FLAG_BEGIN_P1 | RsNxsTransac::FLAG_TYPE_MSG_LIST_RESP;
|
||||||
trItem->nItems = itemL.size();
|
trItem->nItems = itemL.size();
|
||||||
|
trItem->timestamp = 0 ;
|
||||||
trItem->PeerId(sslId);
|
trItem->PeerId(sslId);
|
||||||
trItem->transactionNumber = transN;
|
trItem->transactionNumber = transN;
|
||||||
|
|
||||||
ServerMsgMap::const_iterator cit = mServerMsgUpdateMap.find(grp_id);
|
ServerMsgMap::const_iterator cit = mServerMsgUpdateMap.find(grp_id);
|
||||||
|
|
||||||
if(cit != mServerMsgUpdateMap.end())
|
if(cit != mServerMsgUpdateMap.end())
|
||||||
trItem->timestamp = cit->second->msgUpdateTS;
|
trItem->updateTS = cit->second->msgUpdateTS;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cerr << "(EE) cannot find a server TS for message of group " << grp_id << " in locked_pushMsgRespFromList. This is weird." << std::endl;
|
std::cerr << "(EE) cannot find a server TS for message of group " << grp_id << " in locked_pushMsgRespFromList. This is weird." << std::endl;
|
||||||
trItem->timestamp = 0 ;
|
trItem->updateTS = 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// also make a copy for the resident transaction
|
// also make a copy for the resident transaction
|
||||||
|
Loading…
Reference in New Issue
Block a user