mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 18:15:18 -04:00
added identity creation time in IdDetails
This commit is contained in:
parent
d143f761cf
commit
9017db4797
4 changed files with 118 additions and 100 deletions
|
@ -315,6 +315,7 @@ struct RsIdentityDetails : RsSerializable
|
|||
|
||||
RsGxsImage mAvatar;
|
||||
|
||||
rstime_t mPublishTS;
|
||||
rstime_t mLastUsageTS;
|
||||
|
||||
std::map<RsIdentityUsage,rstime_t> mUseCases;
|
||||
|
@ -329,6 +330,7 @@ struct RsIdentityDetails : RsSerializable
|
|||
RS_SERIAL_PROCESS(mPgpId);
|
||||
//RS_SERIAL_PROCESS(mReputation);
|
||||
//RS_SERIAL_PROCESS(mAvatar);
|
||||
RS_SERIAL_PROCESS(mPublishTS);
|
||||
RS_SERIAL_PROCESS(mLastUsageTS);
|
||||
RS_SERIAL_PROCESS(mUseCases);
|
||||
}
|
||||
|
|
|
@ -703,6 +703,7 @@ bool p3IdService::getIdDetails(const RsGxsId &id, RsIdentityDetails &details)
|
|||
details.mLastUsageTS = it->second.TS ;
|
||||
details.mUseCases = it->second.usage_map ;
|
||||
}
|
||||
details.mPublishTS = data.mPublishTs;
|
||||
|
||||
// one utf8 symbol can be at most 4 bytes long - would be better to measure real unicode length !!!
|
||||
if(details.mNickname.length() > RSID_MAXIMUM_NICKNAME_SIZE*4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue